2011年12月14日

[PHP]JSON的使用

1,'b'=>2,'c'=>3,'d'=>4,'e'=>5);  
echo $arr2=json_encode($arr); 
$stdin=get_object_vars(json_decode($arr2));
foreach ($stdin as $k => $v) {
echo "$k = \"$v\"\n"; // print json_decode key => value.
}
?>

1 則留言:

  1. Pragmatic Play Casino India » 100% up to ₹2500 + ₹10000
    Pragmatic Play is a leading 김해 출장마사지 provider of high-quality 서산 출장마사지 casino content for both desktop and mobile devices, offering 경상남도 출장안마 a wide 남양주 출장샵 range of games, 강원도 출장마사지

    回覆刪除