php json_decode无法处理解决方法

php json_decode无法处理解决方法

<pre>
$aa=urlencode('eeeee');
$dfda='[
{"company":"测试","job":"11","start":"2016.09","end":"2016.11","details":"'.$aa.'","time":"1467460549","income":"12121"}
]
$work_experience = json_decode($dfda, true);
print_r($work_experience);
exit();
</pre>

所以直接传json的数据的时候 最好里面的非数字内容全部urlencode传过来 确保万无一失

原文地址:https://www.cnblogs.com/newmiracle/p/11875977.html