以JSON的形式从Angularjs发送数据,如下所示
对象{data:"stdClassObject↵(↵[0] =>B↵[vin] => vin123 ... [value] =>Gambia↵[country_name] =>冈比亚↵)↵ ",status:200,headers:function,config:Object}
然后在php中如何只访问该Object Json中的数据 即data-> 0,data-> vin等............
答案 0 :(得分:1)
只需使用json_decode(),因为它是一个标准的PHP函数,可以将序列化的JSON对象转换为php数组,然后可以在php中使用。
如果你想要一个对象表示,你可以使用该数组中的数据来保湿该对象。