johnslater Posted April 18, 2008 Share Posted April 18, 2008 I'm unable to find anything on the PHP website or on Google that seems to do what i require. I'm trying to find a way to split a string into an array or something at every comma. So i want something like this... List: 1,2,3,4,5,6,7,8,9,10 to be outputted as... 1 2 3 4 5 6 7 8 9 10 Hope you can help or point me in the right direction. Link to comment https://forums.phpfreaks.com/topic/101674-string-splitting-help/ Share on other sites More sharing options...
zenag Posted April 18, 2008 Share Posted April 18, 2008 $arr=array(1,2,3,4,5,6,7,8,9,10); foreach($arr as $a) {echo $a; } Link to comment https://forums.phpfreaks.com/topic/101674-string-splitting-help/#findComment-520184 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.