PHP Heredoc 语法
通过使用此语法,我们可以通过 PHP 脚本显示 HTML 元素。
语法
<<<name of string
//content
name of string
示例1
<?php
echo <<<javatpoint
welcome to the best tutorial site
javatpoint;
?>
输出:

示例2
保存为string.php

输出:

通过使用此语法,我们可以通过 PHP 脚本显示 HTML 元素。
<<<name of string
//content
name of string
<?php
echo <<<javatpoint
welcome to the best tutorial site
javatpoint;
?>
输出:

保存为string.php

输出:
