-
Recent Posts
Recent Comments
Archives
Categories
- Data Structures and Algorithms (2)
- Linux (11)
- Misc (2)
- Programming (19)
- Tools (14)
- Web Development (12)
- Windows (1)
Meta
Log In
Tag Archives: implode
Commas in a PHP For Loop
When generating a string that lists items (e.g. for a MySQL query) with a for-loop in PHP, you often need to add commas after every element except the last one. It may be trivial advice, but instead of having an … Continue reading