开发者

Does any know how to access this huge nested array?

Does any know how to access this huge nested array?

开发者_StackOverflow中文版

I’m doing a print_r to come up with this result.

Please look on the image attached to see what I’m referring.

Does any know how to access this huge nested array?

For example I would like to access the entity_id in that array.

How would I do that?

Thanks.


extend this class

class Foo extends Mage_Catlog..........
{
public function getEntityId()
{
return $this->_ddlCatch[1]['sales_flat_quote']['entity_id'];
}

}


The "_entity", "_read", and "_dllCache" objects are protected, hence you can't access them. However, it seems someone has found a hack to exploit eval: OO PHP protected properties not available in foreach loop?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜