fork download
  1. <?php
  2.  
  3. $ip='192.168.0.1';
  4.  
  5. $e=explode('.',$ip);//split on the dot
  6.  
  7. echo $e[0].'.'.$e[1]; //glue back the first 2 pieces
Success #stdin #stdout 0s 82560KB
stdin
Standard input is empty
stdout
192.168