代碼如下:
$url = 'https://www.baidu.com/'; if(preg_match('/^http(s)?://.+/',$url)) { echo '帶'; }else { echo '不帶'; }
個(gè)人微信號(hào)
微信掃一掃加關(guān)注