Some helper functions for web requests.
More...
Some helper functions for web requests.
static isIpV4Address |
( |
|
$addr | ) |
|
|
static |
Checks if string is a valid IPv4 address.
- Parameters
-
- Return values
-
bool | True if string is a valid IPv4 address |
static resolveHostname |
( |
|
$hostname | ) |
|
|
static |
Tries to resolve hostname. If IPv4 address is supplied, just returns it.
- Parameters
-
string | $hostname | Target hostname or IPv4 address |
- Exceptions
-
- Return values
-
The documentation for this class was generated from the following file: