Solar_Filter_ValidateIp::validateIp()

public bool Solar_Filter_ValidateIp::validateIp ( mixed $value )

Validates that the value is a legal IP address.

Parameters

  • (mixed) $value: The value to validate.

Returns

  • (bool) True if valid, false if not.

Description

Validates that the value is a legal IP address.

Currently validates only IPv4; in future versions, will validate both IPv4 and IPv6.



Local