Function __global->inet_pton
Definitions
sources_custom/phpstub.php
- Converts a human readable IP address to its packed in_addr representation.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $address | string | No | No | required parameter | N/A | N/A | A human readable IPv4 or IPv6 address |
Returns
- The in_addr representation of the given address (false: error)
- Type: ~string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Converts a human readable IP address to its packed in_addr representation.
*
* @param string $address A human readable IPv4 or IPv6 address
* @return ~string The in_addr representation of the given address (false: error)
*/
function inet_pton(string $address)
* Converts a human readable IP address to its packed in_addr representation.
*
* @param string $address A human readable IPv4 or IPv6 address
* @return ~string The in_addr representation of the given address (false: error)
*/
function inet_pton(string $address)
