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 Quote 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); Quote Link to comment https://forums.phpfreaks.com/topic/134567-seperating-array-by-commas/#findComment-700679 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.