php中关于json_encode的问题
var_dump(json_encode(array("Apple","Banana","Pear")));输出:string'["Apple","Banana","Pe...
var_dump(json_encode(array("Apple", "Banana", "Pear")));
输出:
string'["Apple","Banana","Pear"]'(length=25)
问题:
["Apple","Banana","Pear"]是json格式吗?为什么不是{"0":"Apple","1":"Banana","2":"Pear"} 展开
输出:
string'["Apple","Banana","Pear"]'(length=25)
问题:
["Apple","Banana","Pear"]是json格式吗?为什么不是{"0":"Apple","1":"Banana","2":"Pear"} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询