0

我有一个这样的 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"
4

0 回答 0