KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
This array holds a list of items, and I want to turn it into a string, but I don't know how to make the last item have a &/and before it instead of a comma. 1 => coke 2=> sprite 3=> fanta should become coke, sprite and fanta This is the regular implode function: $listString = implode(', ', $listArrau); What's an easy way to do it?
Tags (comma-separated)
Save Edits
Cancel