if(preg_match('#^http://([a-z0-9])+\.baidu\.com#i',$match[1]))
{
return "$match[1]";
}
elseif(preg_match('#^https://([a-z0-9])+\.tmall\.com#i',$match[1]))
{
return "$match[1]";
}
else
{
$match[1] = str_replace("http://","",base64_encode($match[1]));
return '' . base64_decode($match[1]) . '';
}
为什么遇到xxx.tmall.com的不执行以下这段代码
return "$match[1]";
而是直接执行了
return '' . base64_decode($match[1]) . '';
哪里写错了吗
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
正则表达式写错了,#换为/