+
95
-

回答

ereg_replace在php7以后已经废弃了,可使用preg_replace替代,上面代码改为

preg_replace(/"^.+@([^@]+)$", "\\1/", $address);


网友回复

我知道答案,我要回答