In what form to record the Ip in the database?

In what form to record the ip of the user in the database? Began to alter the script to pdo and php 7. Previously with the function INET_ATON(); Now the function throws an error Uncaught Error: Call to undefined function INET_ATON()
Thank you
June 3rd 19 at 18:55
2 answers
June 3rd 19 at 18:57
On the PHP side to convert two functions:

To store in MySQL: INT(11) UNSIGNED

INET_ATON is a mysql function
June 3rd 19 at 18:59
No difference.
You can at least string.
It all depends - how you will need it to look.

Find more questions by tags PHP