خرید بک لینک

Vote count: 0

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:

enter image description here

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);

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 15 فروردين 1395 ساعت: 22:54

صفحه بندی