083 过滤字符串中的某个字符

$str="abcdefg";
$str=str_replace('a','',$str); 
echo $str;//输出 bcdefg
关于str_replace
http://www.w3school.com.cn/php/func_string_str_replace.asp

猜你喜欢

转载自blog.csdn.net/phpstory/article/details/80883185