摘要:
测试代码:';$str = rtrim('article_index.html', '.html');echo $str;echo '';$str = rtrim('articleABCT.html', '.html');echo $str;echo '';?>显示结果:article_lisarticle_indexarticleABCT测试环境:WINNT Apache/2.2.16 (Win32) PHP/5.2.14(本地PHPnow 1.5.6-1)Linux Apache 阅读全文
摘要:
//安全过滤输入[jb]function check_str($string, $isurl = false){ $string = preg_replace('/[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F]/','',$string); $string = str_replace(array("\0","%00","\r"),'',$string); empty($isurl) && $string = preg_replace("/& 阅读全文