[PHP] Re: PHP5 + SPL - Creating an object as an array.

2005-02-03 Thread Yotam Ofek
Jason Barnett wrote: Yotam Ofek wrote: I would like to create an object like this: class TestClass { private $some_array; public $just; public $some; public $public; public $vars; } ?> Is it possible, through SPL, to make the class accessible as "$testclass['array_key']", whic

[PHP] Re: PHP5 + SPL - Creating an object as an array.

2005-01-31 Thread Jason Barnett
Yotam Ofek wrote: I would like to create an object like this: class TestClass { private $some_array; public $just; public $some; public $public; public $vars; } ?> Is it possible, through SPL, to make the class accessible as "$testclass['array_key']", which will return the val