Posted by mungflesh on 11/19/48 11:29
I am new to PHP. Can I define an array in PHP 4.3 containing class types? ie. (simplified example) class MyType { function MyFunc() { $newType = new MyType; this->$array_MyType[] = $newType; } } I am getting an error "Cannot use [] for reading" Thanks
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming