title: Create comma separated list from array in laravel/blade?
body: <p>I am displaying elements of an array <code>@foreach($tags as $tag)$tag-&gt;@endforeach</code>. The output is <code>tag1tag2tag3</code>. What is the possible way to sho elements of array in <code>tag1,tag2,tag3</code>. And how to not show<code>,</code> if there is only one element in array.</p>