function main() { print "Test begin\n"; NewClass::$a = array(1, 2, 3); while ($b = array_pop(NewClass::$a)) { echo $b . "\n"; var_dump(NewClass::$a); } print "Test end\n"; }
<?php print "Test begin\n"; class NewClass { public static $a; } NewClass::$a = array(1, 2, 3); while ($b = array_pop(NewClass::$a)) { echo $b . "\n"; var_dump(NewClass::$a); } print "Test end\n";
/** * Constructor * * @return void */ protected function _construct() { parent::_construct(); $this->_mode = 'edit'; }