My problem is below:
class AClass{
BClass objB;
CClass objC = array();
}
$objC1 = new CClass();
$objC1->x = data; .....
$objA1 = new AClass();
$objA1->objC[] = $objC1;
So what i want to do is, there is an array of CClass objects, which should go inside AClass.
Tries arrayobjects, push etc. no luck.
Thanks in Advance.