实例
<meta charset="utf-8"> <?php header("Content-type:text/html;charset=utf-8"); $appname='Wechat'; $who='Jim'; $doWaht='聊天'; echo " $who 使用 $appname $doWaht"; echo "<hr color='red'>"; echo nl2br(" \"晚饭吃了没?\" \n \"吃过了\""); echo "<hr color='green'>"; $content = <<<heredoc $appname 正在被越来越多的人使用 heredoc; echo $content ; echo "<hr color='orange'>"; $content_2 = <<< 'NOWDOC' <h2>下载地址</h2> https://web.wechat.com/ NOWDOC; echo $content_2; /** * Created by PhpStorm. * User: 金超 * Date: 2018/04/12 * Time: 20:03 */ ?>
运行实例 »
点击 "运行实例" 按钮查看在线实例