日期:2014-05-17  浏览次数:20502 次

这是什么类型的数据?有没系统函数拆分的?
{"text":[{"id":"11","name":"zhang"},{"id":"35","name":"wang"},{"id":"45","name":"li"}],"src":"en","time":0}

------解决方案--------------------
$s = '{"text":[{"id":"11","name":"张"},{"id":"35","name":"wang"},{"id":"45","name":"li"}],"src":"en","time":0}';
$s = iconv('gbk', 'utf-8', $s);
print_r(json_decode($s));
stdClass Object
(
    [text] => Array
        (
            [0] => stdClass Object
                (
                    [id] => 11
                    [name] => 张
                )

            [1] => stdClass Object
                (
                    [id] => 35
                    [name] => wang
                )

            [2] => stdClass Object
                (
                    [id] => 45
                    [name] => li
                )

        )

    [src] => en
    [time] => 0
)