PHP json_decode(),json_decode函數 對 JSON 格式的字元串進行編碼 - PHP100
Noted in a comment below is that this function will return NULL when given a simple string. This is new behavior - see the result in PHP 5.2.4 : php > var_dump(json_decode('this is a simple string')); string(23) "this is a simple string" in PHP 5.3.2 : ph...