json_decode(json_encode($arr), true);
json_encode
| 对变量进行 JSON 编码 |
json_decode
| 对 JSON 格式的字符串进行解码 |
assoc
php检测数据类型的一个方法:
gettype($arr);
版权声明:本文为qq_41588568原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
json_decode(json_encode($arr), true);
json_encode
| 对变量进行 JSON 编码 |
json_decode
| 对 JSON 格式的字符串进行解码 |
assoc
php检测数据类型的一个方法:
gettype($arr);