php json_encode与json_decode详解及实例 一、json_encode()该函数主要用来将数组和对象,转换为json格式。先看一个数组转换的例子:$ json_decode详解及实例代码