如何编写php代码来回显json对象和xml对象?

时间:2014-03-02 12:52:00

标签: xml json echo

var person='{
   "First_Name":"Paulwin",
   "Last_Name":"Martin",
   "Address":[
      {
         "Door_No":"1661/A1",
         "Street":"Rose Nagar",
         "City":"Sivagangai"
      }
   ],
   "Phone":[
      {
         "Mobile":"+9174188784",
         "Land_Line":"04575244555",
         "Skype":"7418874384"

      }
   ]
}';

这是我的json对象,请告诉我如何使用php回复手机号码

1 个答案:

答案 0 :(得分:0)

$ objPerson = json_decode($ Person); print $ objPerson-> {'电话'} - > {'移动'};