'Twas brillig, and dele454 at 24/04/09 20:55 did gyre and gimble:
Oops! Thanks mate i see where i should have know better. Thanks for
clarifying. Much appreciated.
Incidentally, if you prefer to use object notation you can do:
$arr = array('foo' => 'bar');
$obj = (object)$arr;
echo $obj->foo;
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]