<?php
$a = "<a>河蟹社会afeowahgieawhjozf候蛇fawgwea维稳aghoiawghowi我日</a>";
$result = preg_replace('/([\x80-\xff]*)/i','',$a);
var_dump($result);
打印结果: string(43) "afeowahgieawhjozffawgweaaghoiawghowi"
<?php
$a = "<a>河蟹社会afeowahgieawhjozf候蛇fawgwea维稳aghoiawghowi我日</a>";
$result = preg_replace('/([\x80-\xff]*)/i','',$a);
var_dump($result);
打印结果: string(43) "afeowahgieawhjozffawgweaaghoiawghowi"
非特殊说明,本博所有文章均为博主原创。
如若转载,请注明出处:https://1235.men/index.php/archives/61/