in reply to IP in range

"\x01\x02\x03\x04" would also work (inet_aton($_))

0x01020304 would also work (unpack('N', inet_aton($_)))

Socket