bool check_ip(
string
$ip)
|
|
Validate the syntax of the given IP adress
This function splits the IP address in 4 pieces (separated by ".") and checks for each piece if it's an integer value between 0 and 255. If all 4 parameters pass this test, the function returns true.
Parameters: