static_properties_001.phpt 258 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. ZE2 Initializing static properties to arrays
  3. --FILE--
  4. <?php
  5. class test {
  6. static public $ar = array();
  7. }
  8. var_dump(test::$ar);
  9. test::$ar[] = 1;
  10. var_dump(test::$ar);
  11. echo "Done\n";
  12. ?>
  13. --EXPECT--
  14. array(0) {
  15. }
  16. array(1) {
  17. [0]=>
  18. int(1)
  19. }
  20. Done