时间:2022-7-13 作者:Deri 分类: PHP
function cut($begin,$end,$str){ $b = mb_strpos($str,$begin) + mb_strlen($begin); $e = mb_strpos($str,$end) - $b; return mb_substr($str,$b,$e); }
$email = 'user@example.com'; $domain = strstr($email, '@');
标签: PHP 字符