items
items
Format A List Of Items In PHP
Fri, 01/08/2010 - 11:52 | by philipnorton42It is usual when writing a list of items to separate each item with a comma, except the last two items, which are separated with the word "and". I recently needed to implement a function that took a string and converted it into a list of this type so I thought I would expand on it and post it here.