timmy01 Posted May 1, 2006 Share Posted May 1, 2006 Hi,i looking for a simple way to add a comma after each mysql result...so after getting the result from mysql i get this:var1 and var2now, all i want is a way to separate them with a commaso i should look like this:var1,var2 Quote Link to comment https://forums.phpfreaks.com/topic/8806-how-to-add-a-comma/ Share on other sites More sharing options...
ToonMariner Posted May 1, 2006 Share Posted May 1, 2006 if you made an array of results you could use implode(',',$arr); Quote Link to comment https://forums.phpfreaks.com/topic/8806-how-to-add-a-comma/#findComment-32332 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.