php-parser/test/code/parser/scalar/unicodeEscape.test

26 lines
394 B
Plaintext
Raw Normal View History

Unicode escape sequence
-----
<?php
"\u{0}";
"\u{114}";
"\u{1F602}";
-----
!!php7
array(
2017-01-19 22:31:29 +01:00
0: Stmt_Expression(
expr: Scalar_String(
value: @@{"\0"}@@
)
)
2017-01-19 22:31:29 +01:00
1: Stmt_Expression(
expr: Scalar_String(
value: Ĕ
)
)
2017-01-19 22:31:29 +01:00
2: Stmt_Expression(
expr: Scalar_String(
value: @@{"\xF0\x9F\x98\x82"}@@
)
)
2017-01-19 22:31:29 +01:00
)