FUNC :: boolean is_ipv4 ( string ip_address )
Return TRUE if is IPv4 address, FALSE if not. Example:

echo FUNC::is_ipv4('127.0.0.1') ? 'true' : 'false';

See Also: FUNC::is_hostname() [ Comments ] Last update: Sunday, July 01, 2007