php如何使Html/PHP格式的字符串不被解释,而是照原样显示
网络整理 - 08-25
PHP代码:--------------------------------------------------------------------------------
[php]
$str="
PHP
";
Echo "被解释过的: ".$str."
经过处理的:";
Echo htmlentities(nl2br($str));
[/php]
PHP代码:--------------------------------------------------------------------------------
[php]
$str="
PHP
";
Echo "被解释过的: ".$str."
经过处理的:";
Echo htmlentities(nl2br($str));
[/php]