Page 2 of 2

Posted: Tue Mar 06, 2007 8:15 am
by Begby
This is an object you are dealing with, not an array. Although it appears to be an array, its not. You cannot access the data in that structure using $arrayName['key']. You really should read up on some PHP docs to get up to speed.

Posted: Tue Mar 06, 2007 9:05 am
by feyd
It would appear all the properties of the object are dynamically generated, i.e. public but not apart of the class definition. Therefore $foo->cart['bar'] should technically be possible provided the "cart" property has been set by the object.