Confused about the list() function
| From: | DonPro | Date: | Wed, 17 Jul 2002 16:26:08 +0000 |
| Subject: | Confused about the list() function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-108115@lists.php.net to get a copy of this message | ||
Hi,
I have the following situation. I have an array of colors that I would like to print out. My first
course of action would be to convert the array to a string so that I can parse it. My command would
be:
$color_list = explode(",", $color);
Now that I have a string of colors delimited by commas, I would like to parse the string and print
out all my colors. I have read the documentation on using the list() function but I find it
confusing. Can someone clear the fog from my mind please?
Thanks,
Don