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 Quote 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); Quote 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! Quote Link to comment https://forums.phpfreaks.com/topic/202284-split-an-ip-address/#findComment-1060705 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.