Function __global->normalise_ip_address
Definitions
sources/global.php
- Normalise/fix a provided IP address, including wildcarding part of it if requested.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: string
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$ip | IP | required parameter | N/A | N/A | The IP address to normalise |
$amount | ?integer | Null | N/A | N/A | The number of groups to include in the IP address (rest will be replaced with *'s). For IP6, this is doubled. (null: wildcards not allowed) |
Return
- The normalised IP address
- Type: IP
- Set: N/A
- Range: N/A
sources/minikernel.php
- Normalise/fix a provided IP address, including wildcarding part of it if requested.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: string
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$ip | IP | required parameter | N/A | N/A | The IP address to normalise |
$amount | ?integer | Null | N/A | N/A | The number of groups to include in the IP address (rest will be replaced with *'s). For IP6, this is doubled. (null: wildcards not allowed) |
Return
- The normalised IP address
- Type: IP
- Set: N/A
- Range: N/A