Nextcloud PHP API (master)

IAddress

Tags
since
30.0.0

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
since
30.0.0
Return values
string

isValid()

Check if a given IP address is valid

public static isValid(string $ip) : bool
Parameters
$ip : string
Tags
since
30.0.0
Return values
bool

matches()

Check if current address is contained by given ranges

public matches(IRange ...$ranges) : bool
Parameters
$ranges : IRange
Tags
since
30.0.0
Return values
bool

        
On this page

Search results