
March 30th, 2000, 07:20 PM
|
|
Junior Member
|
|
Join Date: Jan 2000
Location: Gorakhpur,U.P.,India
Posts: 24
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Hi All,
I have created two classes as ClassA and ClassB. The ClassA has a property named prop.
ClassB has some instances of ClassB defined inside it. Now it creates a new instance of ClassB as
MyObject = new ClassB;
An array of instances of ClassA (named MyObjectsOfA[]) is created within MyObject. So what would be the right way of referring to property prop of MyObjectOfA. I get a parse error if i use
$MyObject->MyObjectsOfA[$i]->prop
Where is the problem. Early help would be appreciated.
Thanks to all in advance.
------------------
Anish Modi
Infotech World
India
[This message has been edited by amodi (edited March 30, 2000).]
|