Saturday 15 February 2014

arrays - How to get json element's property from Entire Json in PHP -


My Jason value looks like this:

  [["" Id: "1169 "" "," "", "1164"}, {"id": "1163"}, {"id": "1162"}, {"id": "1161"}]   

Now I want to store numerical values ​​only 1169,1164,1163,116,1161 in a different array. How can I do this?

simple

  $ value = array_values ​​(json_decode ($ Json, truth));    

No comments:

Post a Comment