[PHP] Re: Help with associative array in a PHP class. Not working as I'd

2003-12-10 Thread Justin Patrin
Justin Patrin wrote: class kismetap { function kismetap() { $this->$myPacket = array('blah' => 'asdfasdfasdf'); } } That should be $this->myPacket = ... -- paperCrane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help with associative array in a PHP class. Not working as I'd expect it to?!

2003-12-10 Thread Justin Patrin
Daevid Vincent wrote: I'm pulling out my hair on this. I don't think I'm doing anything wrong and I've tried it with PHP 4.3.4 (cli) (built: Nov 7 2003 03:47:25) AND also v4.1.2 on Linux. With the line commented as shown, I get this output: -- [daevid=pts/4]6:[EMAIL PROTECTED]:{/home/daevid}>