Jump to content

Change IP from 000.00.00.000 to 000.##.##.000


brown2005

Recommended Posts

[tt]GhettoCode[sup]TM[/sup][/tt]
[code]
<?php
  function mask_ip($ip) {
      $ip = explode(".", $ip);
      $ip[1] = "###";
      $ip[2] = "###";
      $ip = implode(".", $ip);
      return $ip;
  }

  $ip = "123.123.123.123"; // example
  $ip = mask_ip($ip); // useage
?>
[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.