I want to check if an entered input is a valid IP address or not. I would like a specific function that will help me validate a users input.
filter_var($ip, FILTER_VALIDATE_IP)
http://www.php.net/filter_var