array_filter
array_filter
Print Array Without Trailing Commas In PHP
Fri, 04/24/2009 - 09:10 | by philipnorton42I have previously talked about Removing commas from the end of strings, but it is also possible to use the implode() function to do the same sort of thing.
implode() takes two parameters, the separator and the array, and returns a string with each array item separated with the separator. The following example shows how this function works.