1 $arr = [array("name"=>"jack","sex"=>"1")];
2 echo $arr[0]["name"]; //array元素读取
3
4 $arr2 = [(object)array("name"=>"jack","sex"=>"1")];
5 echo $arr[0]->name; //object元素读取
3
4 $arr2 = [(object)array("name"=>"jack","sex"=>"1")];
5 echo $arr[0]->name; //object元素读取