php将符号替换为空格
<?php
$character = "!@#$%^&*中'文中'文中'文().,<>|[]'\":;}{-_+=?/abcdefgh中'文ijklmnopqrstuvwx中'文yzABCDEFGHI中文JKLMNOPQRSTUVWXYZ~`中'文文文文文";
$reg = "/[[:punct:]]/i";
$character = preg_replace($reg, '', $character);
print_r($character);
die;
?>...
分类:
Web程序 时间:
2014-10-13 16:12:19
阅读次数:
191