fork download
  1. <?php
  2.  
  3. // your code goes here
  4.  
  5.  
  6. $a = new stdClass();
  7.  
  8. $b = array();
  9.  
  10. var_dump(empty($a), empty($b), count($a));
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
bool(false)
bool(true)
int(1)