How to Validate a URL with PHPA simple function using PHP and CURL that checks whether a URL is valid or not, by returning true or false.