Is ip2long() in PHP equal to INET_ATON() function in MySQL?

Viewed 6659

If we have an ip address as below:

127.0.0.1

Does both functions convert the ip address to the same number, or do they differ and have different result?

2 Answers
Related