任何建议都会有所帮助,谢谢
我正在尝试用内容清理一段 html 标签,但由于某种原因它无法正常工作
<?php
function cleaning($vclean)
{
$vclean = strip_tags($vclean);
$vclean = rtrim($vclean);
$vclean = trim($vclean);
$vclean = str_replace(" ", "", $vclean);
$vclean = preg_replace('/\s\s+/', ' ', $vclean);
$vclean = str_replace("'", "", $vclean);
echo "function is cleaning<br>";
}
cleaning($any_variable);
?>