Lines Matching refs:json_encode
2 json_encode() tests for U+2028, U+2029
5 var_dump(json_encode(array("a\xC3\xA1b")));
6 var_dump(json_encode(array("a\xC3\xA1b"), JSON_UNESCAPED_UNICODE));
7 var_dump(json_encode("a\xE2\x80\xA7b"));
8 var_dump(json_encode("a\xE2\x80\xA7b", JSON_UNESCAPED_UNICODE));
9 var_dump(json_encode("a\xE2\x80\xA8b"));
10 var_dump(json_encode("a\xE2\x80\xA8b", JSON_UNESCAPED_UNICODE));
11 var_dump(json_encode("a\xE2\x80\xA8b", JSON_UNESCAPED_LINE_TERMINATORS));
12 var_dump(json_encode("a\xE2\x80\xA8b", JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_LINE_TERMINATORS));
13 var_dump(json_encode("a\xE2\x80\xA9b"));
14 var_dump(json_encode("a\xE2\x80\xA9b", JSON_UNESCAPED_UNICODE));
15 var_dump(json_encode("a\xE2\x80\xA9b", JSON_UNESCAPED_LINE_TERMINATORS));
16 var_dump(json_encode("a\xE2\x80\xA9b", JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_LINE_TERMINATORS));
17 var_dump(json_encode("a\xE2\x80\xAAb"));
18 var_dump(json_encode("a\xE2\x80\xAAb", JSON_UNESCAPED_UNICODE));