hmmm, not sure what ya want, but if you just want to chop out the dots and store is as such, its easy 🙂
explode it into 4 sections, then combine them.
Including getting the ip...
$ip = $GLOBALS['REMOTE_ADDR'];
$arr = explode(".",$ip);
$oct1 = $arr[0];
$oct2 = $arr[1];
$oct3 = $arr[2];
$oct4 = $arr[3];
$ip_nodots = "$oct1$oct2$oct3$oct4";
$ip_nodots is now the ip without dots (in theory)
so 212.187.65.14 (made up)
is 2121876514, it thats what you want.