<?php $url = "https://stackoverflow.com/questions/53304342/checking-the-uri-php"; 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.