hansman Posted August 22, 2008 Share Posted August 22, 2008 I have a form that is named "Numbers" I will be putting data that looks like: "1,4433,4567645,33245654,345," there will be hundreds of numbers. i am assuming i need to use explode() and remove then put the numbers in an array to store in different rows. how would i write this code? Quote Link to comment https://forums.phpfreaks.com/topic/120863-solved-form-to-array/ Share on other sites More sharing options...
BlueSkyIS Posted August 22, 2008 Share Posted August 22, 2008 what have you tried? Quote Link to comment https://forums.phpfreaks.com/topic/120863-solved-form-to-array/#findComment-623033 Share on other sites More sharing options...
Jibberish Posted August 22, 2008 Share Posted August 22, 2008 explode will put it into an array for you for example: $string = "1,4433,4567645,33245654,345"; $explodedString = explode("," ,$string); print_r($explodedString); will give you Array ([0] => 1 [1] => 4433 [2] => 4567645 [3] => 33245654 [4] => 345 ) Quote Link to comment https://forums.phpfreaks.com/topic/120863-solved-form-to-array/#findComment-623070 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.