print_r(json_decode($ew, true));

解决方案 »

  1.   

    手册总是要看的json_decode — 对 JSON 格式的字符串进行编码说明
    mixed json_decode ( string $json [, bool $assoc ] )
    接受一个 JSON 格式的字符串并且把它转换为 PHP 变量 参数json 
    待解码的 json string 格式的字符串。 assoc 
    当该参数为 TRUE 时,将返回 array 而非 object 。 
      

  2.   

    json_decode默认是object,要转为数组,第二个参数需要设为true。
      

  3.   

    请问当对象或数组需要字符串化保存的时候,json和序列化各有什么优势?
      

  4.   

    json 用于外部交流
    序列化 用于内部交流