Home > Article > Backend Development > How to hide part of the mailbox in php
php隐藏部分邮箱的方法:首先创建一个PHP示例文件;然后定义一个hideStr方法;接着通过“preg_replace('/([\d\w+_-]{0,100})@/', '***@', $str, -1, $count);”方法实现隐藏。
推荐:《PHP视频教程》
PHP使用星号隐藏用户名,手机,邮箱的实现方法
PHP使用星号替代用户名手机和邮箱这个在许多的活动界面会看到如淘宝的购物界面中的一些客户的支付宝号都是隐藏掉的哦,下面我们来看一下它的使用方法吧.
The above is the detailed content of How to hide part of the mailbox in php. For more information, please follow other related articles on the PHP Chinese website!