ipv4ToNumber.php
Table of Contents
Functions
- ipv4ToNumber() : string
- Convert an IPv4 address string into its numeric representation.
Functions
ipv4ToNumber()
Convert an IPv4 address string into its numeric representation.
ipv4ToNumber(string $value) : string
This helper wraps the ArangoDB AQL function IPV4_TO_NUMBER(stringAddress)
which converts an IPv4 address in dotted decimal notation into its 32-bit
numeric representation.
Example AQL usage:
IPV4_TO_NUMBER("127.0.0.1") // returns 2130706433
IPV4_TO_NUMBER("192.168.0.1") // returns 3232235521
IPV4_TO_NUMBER("0.0.0.0") // returns 0
IPV4_TO_NUMBER("255.255.255.255") // returns 4294967295
Parameters
- $value : string
-
IPv4 address string expression to convert.
Tags
Return values
string —The formatted AQL expression.