<?php // Variable to check $url = "https://w3schools.com"; // Validate url if (filter_var($url, FILTER_VALIDATE_URL)) { echo("$url is a valid URL"); } else { echo("$url is not a valid URL"); } ?>
You have javascript disabled. You will not be able to edit any code.