Because PHP' s integer type is signed, and many IP addresses will result in negative integers, you need to use the "%u "formatter of sprintf() or printf() to get the string representation of the unsigned IP address.
Ce second exemple montre comment afficher une adresse convertie à l'aide de la fonction printf():