I am displaying elements of an array @foreach($tags as $tag)$tag->@endforeach
. The output is tag1tag2tag3
. What is the possible way to sho elements of array in tag1,tag2,tag3
. And how to not show,
if there is only one element in array.
I am displaying elements of an array @foreach($tags as $tag)$tag->@endforeach
. The output is tag1tag2tag3
. What is the possible way to sho elements of array in tag1,tag2,tag3
. And how to not show,
if there is only one element in array.