I have two sets of tags and I'm manually adding a comma after the echo which works but adds a comma to the very last tag too.
{echo "<i class=\"fa fa-globe\"></i>";
foreach ($update->client_location as $geo)
{echo "{$geo->title},";}
{echo "<i class=\"fa fa-tags\"></i>";
foreach ($update->blog_tags as $tags)
{echo "{$tags->title},";}
You can see in the above screen grab that this works but adds a comma to the last word too. It's not a huge deal but I'd prefer the last word not to have a comma.
I think it's called "implode" in PHP when you take an array and automagically separate each value with a comma?
Would I end up with exactly the same issue by using an implode function?