You can validate URL in PHP using regular expression or using validate filters Validate URL using regular expression: Example:- <?php // Write you regular expression patttern to match URL $pattern = "/\b(?:(?:https?|ftp):\/\/|www\.)*/i"; // Assign URL to $URL variable $URL = ';name=roop'; // Check url using preg_match if ( preg_match($pattern, $URL)…
More..