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