Jalon Juanis Jalon Juanis - 6 days ago 4
Javascript Question

How to read JSON array using PHP?

I'm looking to read JSON array using PHP. I'm using php

file_get_contents
to read the JSON array.

So, here is how my array look like,My array

Can anyone tell me how can I read all the array?

Answer

return your array with json_encode($array) it will return a JSON Object.