json_encode()函数为什么不能解析带中文的JSON字符串呢?
这样就有值:
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$a = '{ "a":"www", "b":2}';$arr = json_decode($a, true);
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$a = '{ "a":"你好", "b":2}';$arr = json_decode($a, true);