Hi,
I came across a strange behavior when using the magic method __get and some instance variable that should be an array.
Consider the following example: class A { public function __get($name) { $this->$name = array(); return $this->$name; } public function test() { $this->_zork['bar'] = 67; } } $a = new A; $a->test(); var_dump($a); So could someone explain me what is the semantic of the above statements? Thanks -- Mathieu Suen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php