亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

nl2br[replace newline character with <br />]

nl2br[Line breaks replaced with <br /> ]

##test.php:$smarty = new Smarty;
$smarty->assign('articleTitle', "Sun or rain expected\ntoday, dark tonight");
$smarty->display('test.html');


test.html:{$articleTitle|nl2br}


Output:Sun or rain expected<br />today, dark tonight

Continuing Learning
||
<?php echo "nl2br[換行符替換成<br /> ]";
submitReset Code