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? 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? 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 ) Link to comment https://forums.phpfreaks.com/topic/120863-solved-form-to-array/#findComment-623070 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.