How to access the item array from the following object array
Cart66Cart Object
(
[_items:Cart66Cart:private] => Array
(
[2] => Cart66CartI
Something like this maybe:
$object->_items[index]->_productId
But if _items is private you will need a public getter or mess with the Reflection classes. You can set the the private property to be accessible through ReflectionProperty Try this:
$reflectionObject = new ReflectionObject($yourObject);
$property = $reflectionObject->getProperty('_items');
$property->setAccessible(true);
$items = $property->getValue($yourObject);