i have a field in my db which is a code for products and it looks pretty much like an ip address.... i'd like to know how it's possibe to get each octet of the ip...
e.g. for 192.168.1.10
i should get:
$var1 = 192;
$var2 = 168;
$var3 = 1;
$var4 = 10;