2016-04-13 14:48:57 +02:00
|
|
|
Escape sequences in double-quoted strings
|
|
|
|
-----
|
|
|
|
<?php
|
|
|
|
"\n\r\t\f\v\$\"\\";
|
|
|
|
"@@{ implode(range("\0", "\37")) }@@";
|
|
|
|
"\0000\0001";
|
2021-03-21 17:03:15 +01:00
|
|
|
"äöü";
|
2021-04-25 21:36:22 +02:00
|
|
|
"\xc0\x80";
|
|
|
|
"\xd0\x01";
|
2021-04-25 21:47:07 +02:00
|
|
|
"\xf0\x80\x80";
|
2016-04-13 14:48:57 +02:00
|
|
|
|
|
|
|
<<<DOC
|
|
|
|
\n\r\t\f\v\$\"\\
|
|
|
|
@@{ implode(range("\0", "\37")) }@@
|
|
|
|
\0000\0001
|
2021-03-21 17:03:15 +01:00
|
|
|
äöü
|
2016-04-13 14:48:57 +02:00
|
|
|
DOC;
|
|
|
|
|
|
|
|
-----
|
|
|
|
"\n\r\t\f\v\$\"\\";
|
2021-04-25 21:22:15 +02:00
|
|
|
"\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f";
|
|
|
|
"\x000\x001";
|
2021-03-21 17:03:15 +01:00
|
|
|
"äöü";
|
2021-04-25 21:36:22 +02:00
|
|
|
"\xc0\x80";
|
|
|
|
"\xd0\x01";
|
2021-04-25 21:47:07 +02:00
|
|
|
"\xf0\x80\x80";
|
2016-04-13 14:48:57 +02:00
|
|
|
<<<DOC
|
|
|
|
@@{ "\n\r" }@@\t\f\v\$\\"\\
|
2021-04-25 21:22:15 +02:00
|
|
|
\x00\x01\x02\x03\x04\x05\x06\x07\x08\t@@{ "\n" }@@\v\f@@{ "\r" }@@\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f
|
|
|
|
\x000\x001
|
2021-03-21 17:03:15 +01:00
|
|
|
äöü
|
2016-04-13 14:48:57 +02:00
|
|
|
DOC
|
|
|
|
;
|