如何使用对象json转换数组php

时间:2013-02-01 12:05:28

标签: arrays json object

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

0 个答案:

没有答案