When I try encode an array for json the resulting output is 0.
What I also find odd is that the words: "JSON formatted:" is also never echoed.
ScreenShot:
I have tried using json_encode($json, JSON_PRETTY_PRINT); but to fails.
Am I doing something wrong?
$json = array (
'myKey' => "myValue",
'aKey' => "aValue",
'bkey' => "bValue"
);
echo print_r($json) . "<br/>";
echo "JSON formatted: " + json_encode($json);

