I have a url where json is being dynamically loaded. I need to use php to pull in that json and use json_decode to get the info out of it. So far I have not been able to figure out how to get the actual json into my php. What is it that I need to do? Is there a “content” command for php?
Right now I’m trying:
print(json_decode('http://theurl.com'));
You can also use cURL instead of
file_get_contentsfor some extra speed and control, but it’s relatively complicated to compared tofile_get_contents, especially if you’ve never used it before.