xref: /PHP-7.4/Zend/tests/nowdoc_016.phpt (revision 782352c5)
1--TEST--
2Testing nowdocs with escape sequences
3--FILE--
4<?php
5
6$test = <<<'TEST'
7TEST;
8
9var_dump(strlen($test));
10
11$test = <<<'TEST'
12\
13TEST;
14
15var_dump(strlen($test));
16
17$test = <<<'TEST'
18\0
19TEST;
20
21var_dump(strlen($test));
22
23$test = <<<'TEST'
24\n
25TEST;
26
27var_dump(strlen($test));
28
29$test = <<<'TEST'
30\\'
31TEST;
32
33var_dump(strlen($test));
34
35?>
36--EXPECT--
37int(0)
38int(1)
39int(2)
40int(2)
41int(3)
42