June 21st, 2000, 03:11 AM
Can I store objects into an array?
$anArray[$index] = $anObject;
I have problems executing the above code. Does anyone knows a better/correct way of doing it? How do I invoke a method belonging to that object?
Thanks in advance!
June 21st, 2000, 08:03 AM
In PHP3 I had trouble with this sort of thing, but not in PHP4. What version are you using?
June 21st, 2000, 08:20 PM
Thanx I will have my php upgraded. Do you know whether is there a function which could determine the class of an object? for instance, in java i could use ... "instanceof" to check whether a particular object belong to a particular class?