Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ip_address = "127.0.0.1";
- $output = NULL;
- foreach(explode(".", $ip_address) as $key => $value){
- $output[] = "0x" . dechex($value);
- }
- echo implode(".", $output) . PHP_EOL;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement