![]() ![]() | ![]() |
1.1 misho 1: --TEST-- 2: json_decode() tests 3: --SKIPIF-- 4: <?php if (!extension_loaded("json")) print "skip"; ?> 5: --FILE-- 6: <?php 7: var_dump(json_encode('a/b')); 8: var_dump(json_encode('a/b', JSON_UNESCAPED_SLASHES)); 9: ?> 10: --EXPECT-- 11: string(6) ""a\/b"" 12: string(5) ""a/b""