validators\IpValidator $normalize

$normalize public property

Whether to add the CIDR prefix with the smallest length (32 for IPv4 and 128 for IPv6) to an address without it. Works only when subnet is not false. For example:

  • 10.0.1.5 will normalized to 10.0.1.5/32
  • 2008:db0::1 will be normalized to 2008:db0::1/128 Defaults to false.

See also $subnet.

public boolean $normalize = false
doc_Yii
2016-10-30 17:13:53
Comments
Leave a Comment

Please login to continue.