using the following, I can display all information as an array in two formats, however I wish to assign a value to a variable and use e.g just the names rather than a complete screen dump.
$url = ‘http://myurl’;
$json = file_get_contents($url);
$dump=(var_dump(json_decode($json, true)));
$json_output = json_decode($json); print_r($json_output)
This is probably very easy, my apologies.
You can use:
This will create an object which you could then access the properties of like such..
Or you can use json_decode like this:
This create an array which you can access the indiviual keys of like so..