【发布时间】:2018-01-26 09:33:40
【问题描述】:
只是一个我无法通过 Google 找到的简单问题。 我有一个数组,其中一个元素有一个哈希。我想知道如何访问该哈希值:
这是数组
[tsh_promotion_details] =>
[{"id":"1","amount":10,"type":"product.percentage","product_price":69.9,"product_quantity":1}]
与{$position.attributes.tsh_promotion_details|@print_r}
我收到了这个:
[{"id":"1","amount":10,"type":"product.percentage","product_price":69.9,"product_quantity":1}]
但我不知道如何获取金额。感谢您的帮助。
【问题讨论】: