How to check if a URL is valid or not in PHP - PHPGurukul