IAddress
in
Tags
Table of Contents
Methods
- __toString() : string
- Normalized IP address
- isValid() : bool
- Check if a given IP address is valid
- matches() : bool
- Check if current address is contained by given ranges
Methods
__toString()
Normalized IP address
public
__toString() : string
Tags
Return values
stringisValid()
Check if a given IP address is valid
public
static isValid(string $ip) : bool
Parameters
- $ip : string
Tags
Return values
boolmatches()
Check if current address is contained by given ranges
public
matches(IRange ...$ranges) : bool
Parameters
- $ranges : IRange