Advertisement
ardann

Untitled

Jul 11th, 2019
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.18 KB | None | 0 0
  1. <?php
  2. $ip_address = "127.0.0.1";
  3. $output = NULL;
  4. foreach(explode(".", $ip_address) as $key => $value){
  5.     $output[] = "0x" . dechex($value);
  6. }
  7. echo implode(".", $output) . PHP_EOL;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement