陕西十一选五预测根号 www.fqmd.net function isvalidURL($url)
{
    $check = 0;
    if (filter_var($url, FILTER_VALIDATE_URL) !== false) {
      $check = 1;
    }
    return $check;
}

语法:

$url = "//www.fqmd.net";
$check = checkvalidURL($url);
echo $check; //if returns 1 then URL is valid.


 标签 php检测 URL 是否有效