如何获取数组的值?
我想获取此数组中的productId和addressTypeID的值: 大批 (
[0] => Array
(
[entityId] => 7100122
[orderId] => 110631
[createDate] => 2010-10-19T05:40:00
[lastUpdateDate] => 2010-10-19T05:40:00
[deleted] =>
[products] => Array
(
[Product] => Array
(
[productId] => 674976
[productCode] =>
[productDescription] => testtest
[units] => 3
)
)
[addresses] => Array
(
[Address] => Array
(
[addressTypeID] => 8
[addressLine1] => Cebu, Ceity
[city] => City
[zipcode] => 6000
[state] => cebu
[countryCode] => PH
)
)
)
)
如何获取它的值?
I want to get the value of productId and addressTypeID in this array:
Array
(
[0] => Array
(
[entityId] => 7100122
[orderId] => 110631
[createDate] => 2010-10-19T05:40:00
[lastUpdateDate] => 2010-10-19T05:40:00
[deleted] =>
[products] => Array
(
[Product] => Array
(
[productId] => 674976
[productCode] =>
[productDescription] => testtest
[units] => 3
)
)
[addresses] => Array
(
[Address] => Array
(
[addressTypeID] => 8
[addressLine1] => Cebu, Ceity
[city] => City
[zipcode] => 6000
[state] => cebu
[countryCode] => PH
)
)
)
)
How can I get the value of it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
例如:
在 http://php.net/manual/en/language中查看更多信息
。类型.array.php
like:
look more in
http://php.net/manual/en/language.types.array.php