日期:2014-05-17 浏览次数:20589 次
$ar =array(1=>'a',0=>'b'); echo json_encode($ar); //{"1":"a","0":"b"} $ar =array('a',2=>'b'); echo json_encode($ar); //{"0":"a","2":"b"}