我有多维数组字符串存储在PHP变量中,我想提取键及其值。下面是需要拆分的给定字符串。
[{"cutoffTime":"1","refundInPercentage":"50"},
{"cutoffTime":"3","refundInPercentage":"70"},
{"cutoffTime":"6","refundInPercentage":"90"}
]
我该如何提取这个?
答案 0 :(得分:-1)
尝试此操作以完成工作
json_decode($string)