You can validate URL in PHP using regular expression or using validate filters Validate URL in PHP using regular expression: Example:- <?php // Write you regular expression pattern to match URL $pattern = @#\/%=~_|]/i"; // Assign URL to $URL variable $URL = ';name=roop'; // Check url using preg_match if (…
Continue Reading