Hi all, I’m beginning to make small simple app using PHP. I’ve started this locally using an Xampp setup.
Using the JSON decode function and var_dump is working fine on my local, however, this code doesn’t execute when on the server. All other PHP code excutes fine… I can echo, print, work with variables etc…
My question is, is there something perhaps in my servers installation/configuration that would affect:
JSON_decode() and var_dump() from executing?
[php]
echo “hello world”; //this displays fine on local or server.
$json = ‘{“a”:1,“b”:2,“c”:3,“d”:4,“e”:5}’;
var_dump(json_decode($json)); //no love…
var_dump(json_decode($json, true)); //again, no love…
[/php]