字符串 p>
[“first”,“second “,”第三个“]
code> pre>
始终保留数组顺序并生成PHP数组 p>
数组(' 第一个','秒','第三个');
code> pre>
使用 json_decode() code>时? 我意识到答案是对象没有 strong>,但我问的是一个表示数组 strong>的字符串作为输入。 p>
div>
Does the string
["first","second","third"]
always preserve array order and result in the PHP array
array('first','second','third');
when using json_decode()
? I realize the answer is NO for objects, but I am asking about a string representing an array as input.
字符串 p>
[“first”,“second “,”第三个“]
code> pre>
始终保留数组顺序并生成PHP数组 p>
数组(' 第一个','秒','第三个');
code> pre>
使用 json_decode() code>时? 我意识到答案是对象没有 strong>,但我问的是一个表示数组 strong>的字符串作为输入。 p>
div>