Php > Arrays
Function to create a separated list
Function to create a separated list If you have ever needed to make a list (comma seperated, etc.), you probably have run into this problem. You could create a loop and add each item and a comma, for example, to a string. The only problem is you probably do not want the extra comma at the end of the string, so you could write code to remove the comma. Or you could do the following: This code will output the following: My shopping list: orange, apple, pear, banana
Php Codes
Algorithms
Arrays
Authentication
Calendar
Code Snippets
Programs
Content Manage
Contest Related
Cookies
Credit Cards
DBase Related
Databases
Date Time
Directories
E-Mail
Errors
File
File System
Forms
Handling
Graphics
HTML and PHP
Informix
Ingres
InterBase
LDAP
Look and Feel
Miscellaneous
MySQL
Other
PHP Classes
Searching
Navigation
Statistics
Strings
User Manage