📜  php 去除特殊字符 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:26.225000             🧑  作者: Mango

代码示例2
phpCopyWelcome to PHPWorld";

echo "Text before remove: \n" . $mainstr;

echo "\n\nText after remove: \n" .
    str_ireplace(array('', '', '

', '

'), '', htmlspecialchars($mainstr)); ?>