I have a JSON object that can be echoed to view in a browser as follows:
stdClass Object
(
[webmaster] => "data"
[analytics] => "data"
[facebook] => "data"
[twitter] => "data"
[maintenance] => 1
)
data are other values.
I get the above output using:
$data = json_decode($domainSpecific);
print_r($data);
what would be a good way to convert this JSON data into 5 variables preferably with the names of the JSON values - $webmaster, $analytics, $facebook, $twitter, $maintenance?
thankyou
myspaceit would have to create automatically a var called$myspace?