如何在文本域里搜索到手机号码将其替换为***? ereg_replace("13[0-9]{9}","***",$要替换的字符串) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 preg_replace(mixed pattern, mixed replacement, mixed subject);so: preg_replace("^13[1-9][1-9][1-9][1-9][1-9][1-9][1-9][1-9][1-9]","***",$mobilephone) sorry, 是preg_replace("13[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]","***",$mobilephone) 因为手机号码都是11位,所以可以这样:preg_replace("13[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]","***",$mobilephone) 个人制作php在线二维码生成工具 执行session_start()网站很长时间没有反应 高手中的高手进:Flash导航条在FlashPlayer中链接有效,但在网页浏览中链接无效?! 请教怎么解析这段数组? 请教表单的action 属性的问题 查找文件提示Permission denied,请指点 大家帮我看看这段代码有什么问题? 网站必须设置http代理才可访问只看楼主 收藏 回复 根据IP自动判断城市淘宝库不好用! 搜索页面的问题 希望每个人都能进来看一下~! 谁有squirrelmail邮件系统的汉化版
preg_replace("^13[1-9][1-9][1-9][1-9][1-9][1-9][1-9][1-9][1-9]","***",$mobilephone)
preg_replace("13[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]","***",$mobilephone)