gaza165 Posted November 27, 2008 Share Posted November 27, 2008 i currently have an array of numbers and am outputing them like so 5,78,6,98,76,4,45, what i want to do is remove the last comma from the final item in the array 5,78,6,98,76,4,45 Link to comment https://forums.phpfreaks.com/topic/134567-seperating-array-by-commas/ Share on other sites More sharing options...
genericnumber1 Posted November 27, 2008 Share Posted November 27, 2008 echo implode(',' $array); Link to comment https://forums.phpfreaks.com/topic/134567-seperating-array-by-commas/#findComment-700679 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.