Esempio n. 1
0
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";
}
Esempio n. 2
0
<?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";
Esempio n. 3
0
 /**
  * Constructor
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_mode = 'edit';
 }