$url = 'https://www.baidu.com/'; if(preg_match('/^http(s)?:\\/\\/.+/',$url)) { echo '带'; }else { echo '不带'; }
判断网址是否带http://或https://
猜你喜欢
转载自blog.csdn.net/lv6945444/article/details/80382375
今日推荐
周排行