Source Code:
(back to article)
<?php $binary_string = "\x7f\x00\x00\x01"; $ip_address = inet_ntop($binary_string); echo $ip_address; // Outputs 127.0.0.1
Result:
Report an issue