[PHP-DEV] Re: json_encode() x-notation

2018-07-04 Thread Andrea Faulds
Hi, Andrea Faulds wrote: Hi David, David Rodrigues wrote: ​Hello. I saw that JS supports the x-notation (\x40) and u-notation (\u0040), but PHP only supports u-notation. There some reason for that? JSON.parse('"\x40"'); // => @ JSON.parse('"\u0040"'); // => @ While PHP: json_decode('"\\u004

[PHP-DEV] Re: json_encode() x-notation

2018-07-04 Thread Andrea Faulds
Hi David, David Rodrigues wrote: ​Hello. I saw that JS supports the x-notation (\x40) and u-notation (\u0040), but PHP only supports u-notation. There some reason for that? JSON.parse('"\x40"'); // => @ JSON.parse('"\u0040"'); // => @ While PHP: json_decode('"\\u0040"'); // => @ json_decode('