xionhack Posted May 19, 2010 Share Posted May 19, 2010 Hello. I want to be able to split an ip address. Meaning for example 999.888.777.666 to be saved as $first_quad //999 $second_quad //888 $third_quad //777 $fourth_quad ///666 Link to comment https://forums.phpfreaks.com/topic/202284-split-an-ip-address/ Share on other sites More sharing options...
ignace Posted May 19, 2010 Share Posted May 19, 2010 list($first_quad, $second_quad, $third_quad, $fourth_quad) = explode('.', $ip_address); Link to comment https://forums.phpfreaks.com/topic/202284-split-an-ip-address/#findComment-1060704 Share on other sites More sharing options...
xionhack Posted May 19, 2010 Author Share Posted May 19, 2010 thanks! i feel stupid! Link to comment https://forums.phpfreaks.com/topic/202284-split-an-ip-address/#findComment-1060705 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.