代码如下:
$url = 'https://www.baidu.com/'; if(preg_match('/^http(s)?://.+/',$url)) { echo '带'; }else { echo '不带'; }
个人微信号
微信扫一扫加关注
发表评论 取消回复