<?php $information = <<<INFO Name: John Smith Address: 123 Main St City: Springville, CA INFO; echo $information; ?>
结果:
解析错误:语法错误,第3行意外的T_SL
php heredoc
heredoc ×1
php ×1