<?php
$test = new Test;
print_r($test::holder);
class Test {
public $holder = array('test' => 'item');
public static function method()
{
//print_r(self::holder);
//Test::holder = array('one' => 'item');
}
}
Fatal error: Uncaught Error: Undefined constant Test::holder in /in/HI2HC:5
Stack trace:
#0 {main}
thrown in /in/HI2HC on line 5
Process exited with code 255.
Fatal error: Uncaught Error: Undefined class constant 'holder' in /in/HI2HC:5
Stack trace:
#0 {main}
thrown in /in/HI2HC on line 5
Process exited with code 255.