提取多维数组字符串

时间:2016-11-01 18:17:52

标签: php

我有多维数组字符串存储在PHP变量中,我想提取键及其值。下面是需要拆分的给定字符串。

 [{"cutoffTime":"1","refundInPercentage":"50"},
  {"cutoffTime":‌​"3","refundInPercent‌​age":"70"},
  {"cutoffT‌​ime":"6","refundInPe‌​rcentage":"90"}
 ]

我该如何提取这个?

1 个答案:

答案 0 :(得分:-1)

尝试此操作以完成工作

json_decode($string)
相关问题