02877ad328727f3c678e5e90743631b3368f54ea
[yaffs-website] / vendor / nikic / php-parser / test / code / prettyPrinter / expr / stringEscaping.test
1 Escape sequences in double-quoted strings
2 -----
3 <?php
4 "\n\r\t\f\v\$\"\\";
5 "@@{ implode(range("\0", "\37")) }@@";
6 "\0000\0001";
7
8 <<<DOC
9 \n\r\t\f\v\$\"\\
10 @@{ implode(range("\0", "\37")) }@@
11 \0000\0001
12 DOC;
13
14 -----
15 "\n\r\t\f\v\$\"\\";
16 "\0\1\2\3\4\5\6\7\10\t\n\v\f\r\16\17\20\21\22\23\24\25\26\27\30\31\32\33\34\35\36\37";
17 "\0000\0001";
18 <<<DOC
19 @@{ "\n\r" }@@\t\f\v\$\\"\\
20 \0\1\2\3\4\5\6\7\10\t@@{ "\n" }@@\v\f@@{ "\r" }@@\16\17\20\21\22\23\24\25\26\27\30\31\32\33\34\35\36\37
21 \0000\0001
22 DOC
23 ;