I have JSON response that looks like this
(
[0] => stdClass Object
(
[default] => false
[loc] => http://somethingirrelevant.lol
[temp] => '100'
)
)
What i am looking to accomplish change the url in [LOC] to https
I tried using :
$array = preg_replace('http','https' $array);
but that completly breaks array!