如题所述
åç«¯ä¼ ç»æå¡å¨çåªæ¯json æ ¼å¼çå符串ï¼ä½¿ç¨json_decodeï¼
mixed json_decode ( string $json [, bool $assoc ] )
var_dump(json_decode($json));
var_dump(json_decode($json, true));
å¦æä¸å¸¦åæ°ï¼åè¿å为对象
带ä¸trueæ¶ï¼è¿åæ°ç»
foreach($ARR as $k=>$v){
echo 'key='.$k.';value='.$v;
}
åç¬å¤çæ¯ä¸ªkey å对åºçvalue就好
mixed json_decode ( string $json [, bool $assoc ] )
var_dump(json_decode($json));
var_dump(json_decode($json, true));
å¦æä¸å¸¦åæ°ï¼åè¿å为对象
带ä¸trueæ¶ï¼è¿åæ°ç»
foreach($ARR as $k=>$v){
echo 'key='.$k.';value='.$v;
}
åç¬å¤çæ¯ä¸ªkey å对åºçvalue就好
温馨提示:答案为网友推荐,仅供参考