//php 物件到陣列轉換
private function objToArr($obj){
if(!is_ turn $obj;
}
$arr = array();
foreach($obj as $k => $v){
$arr[$k] = $ return $arr;
}
//單純地實現json到php陣列轉換功能
private function simple_json_parser($json){
$json = str_replace("{", (",", $ json);
$arr = array();
foreach($jsonValueas $v){
$arr[str_replace('"',"", $jValue [0])] = (str_replace('"', "", $jValue[1]));
}
return $arr
return $arr