fork download
  1. <?php
  2. class Alumn {
  3. private $name;
  4. private $mat;
  5. function getName()
  6. {
  7. return $this->name;
  8. }
  9. function getMat()
  10. {
  11. return $this->mat;
  12. }
  13. }
  14. $a = new Alumn();
  15. if($a->getName() == NULL)
  16. print "Alumn->name is NULL\r\n";
  17. if($a->getMat() == NULL)
  18. print "Alumn->mat is NULL";
  19. ?>
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
Alumn->name is NULL
Alumn->mat is NULL