How to check URL is valid or not in PHP?

URL validation in php