Function __global->ip2long
Definitions
sources_custom/phpstub.php
- Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $ip_address | string | No | No | required parameter | N/A | N/A | The IP address |
Returns
- The long form (false: cannot perform conversion)
- Type: ~integer
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address.
*
* @param string $ip_address The IP address
* @return ~integer The long form (false: cannot perform conversion)
*/
function ip2long(string $ip_address)
* Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address.
*
* @param string $ip_address The IP address
* @return ~integer The long form (false: cannot perform conversion)
*/
function ip2long(string $ip_address)

