in the split statement
$oct4 = val(split($ip,'.')[3])
_________________________
How to ask questions the smart way <-----------> Before you ask