<?php
class Alumn {
private $name;
private $mat;
}
function getName()
{
return $this->name;
}
function getMat()
{
return $this->mat;
}
}
$a = new Alumn();
?>
In this case $name
and $mat
get zero value? If I use a echo $a->getName()
in the last line I have not return. Anyone knows it? Thanks in advance.