fork download
  1. <?php
  2.  
  3. class Vsratiy
  4. {
  5. public $name = 226;
  6.  
  7. public function test(){
  8.  
  9. echo $this->name;
  10.  
  11. echo "\n";
  12.  
  13. var_dump(empty($this->name));
  14.  
  15. // echo "\n";
  16.  
  17. echo var_dump(empty($this->name));
  18.  
  19. if (empty($this->name) == true){
  20. echo "pass";
  21. } else {
  22. echo "not_pass";
  23. }
  24. }
  25.  
  26. }
  27.  
  28. $a = new Vsratiy;
  29.  
  30. $a->test();
Success #stdin #stdout 0.02s 24448KB
stdin
Standard input is empty
stdout
226
bool(false)
bool(false)
not_pass