Our client is using a version of Mysql that does not support the inet6_aton() function.
What would be the PHP equivalent for the inet6_aton function?
The inet6_aton() function returns the numeric value of the address in VARBINARY data type: VARBINARY(16) for IPv6 addresses and VARBINARY(4) for IPv4 addresses.
We have tried a few functions that convert IP to binary but none of them have the same output as the inet6_aton() function.
Below is the desired output that we are trying to achieve with PHP.
SELECT inet6_aton('214.0.0.0');
// OUTPUT
0xd6000000