日期:2014-05-17 浏览次数:20500 次
$coord = array ( 0=>array ( "x" => "102.00001", "y" => "20.12321" ), 1=>array ( "x" => "300.22", "y" => "111.22" ), 2=>array ( "x" => "202.1121", "y" => "30.2122" ) ); $str = json_encode($coord); echo $str; //[{"x":"102.00001","y":"20.12321"},{"x":"300.22","y":"111.22"},{"x":"202.1121","y":"30.2122"}]