我已经找到了一些解决方案,但不知道发生了什么。<?php
test示例2:test输出1,2:
PHP Parse error: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or heredoc end (T_END_HEREDOC) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CU
php在进一步研究了关于操作符的PHP文档之后,我发现了Nowdoc字符串引用
有人能给Nowdocs are to single-quoted strings what heredocsA nowdoc is specified similarly to a heredoc, but no parsing is done inside a nowdoc.