Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我的字符串格式
[["1258765200","12350"],["1259370000","13000"],["1259974800","11840"]]
我想要像这样的数组
array( [0] => array([0] => 1258765200, [1] => 12350) .... and so on.... )
我不知道如何实现这一点,请帮助我,在此先感谢。
使用 . 将字符串转换为 PHP 多维数组json_decode($str, TRUE)。
json_decode($str, TRUE)
用这个:json_decode($string, true)
json_decode($string, true)