Jump to content

Archived

This topic is now archived and is closed to further replies.

timmy01

how to add a comma

Recommended Posts

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 var2

now, all i want is a way to separate them with a comma
so i should look like this:

var1,var2

Share this post


Link to post
Share on other sites
if you made an array of results you could use implode(',',$arr);

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.