PuStudy.Com Start write and Run your Web Code Online Work, PuStudy.Com Provide Online Web Editor, Every Language Code Work in this Editor, Editor Work Like as - Html, Php, Css, Bootstrap, Asp, jQuery Etc.
<?php // Sample website url $url = "http:://www.example.com"; // Remove all illegal characters from url $url = filter_var($url, FILTER_SANITIZE_URL); // Validate website url if(filter_var($url, FILTER_VALIDATE_URL)){ echo "The $url is a valid website url"; } else{ echo "The $url is not a valid website url"; } ?>