Wednesday 1 January 2020

javascript - jQuery .each() - Identify last item

I want to add a comma between a set of strings using the .each() function except for at the end. How is it possible to get rid of that last comma?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...