标签:
<?php header(‘Content-type:text/html;charset=utf-8‘); function p($arr){ echo "<pre>"; print_r($arr); echo "</pre>"; } #去掉字符串中的中文 $a = "<a>河蟹)(社会afeowa#$%^!@@#zf吃饭fawgwea汉堡包agho_iawghowi我日)</a>"; $result = preg_replace(‘/([\x80-\xff]*)/i‘,‘‘,$a); p($result); ?>
标签:
原文地址:http://www.cnblogs.com/tsw123/p/5892888.html