2010-02-20 「php」eot 與nl2br 用法 2538 0 摘要:「php」eot 與nl2br 用法 <<<EOT 使用的時候,後面要是空的,不能夠有任何的資料在,空格也不行 EOT;這個一定要放在最前面,前面不能夠有任何的資料,空格也不行 nl2br EOT 裡就會換行 <?php $str= <<< EOT test abc EOT; echo nl2br($str); ?> php 回首頁