我有一个像这样的PHP数组:
Array (
[SCAN] => Array (
[SITE] => Array ([0] => http://www.site.com )
[DOMAIN] => Array ([0] => www.site.com )
[IP] => Array ( [0] => 134.0.xx.xxx )
)
[SYSTEM] => Array ( [NOTICE] )
)
我需要使用json_encode()函数转换对象JSON。但问题是让我回答:
"Array\n(\n[SCAN] => Array\n (\n [SITE] => Array\n (\n [0] => http:\/\/www.site.com \n)\n\n"