Re: Confused about the list() function
| From: | 1LT John W. Holmes | Date: | Wed, 17 Jul 2002 16:50:13 +0000 |
| Subject: | Re: Confused about the list() function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108117@lists.php.net to get a copy of this message | ||
How do you want to parse the string? why not just echo $color_list?
---John Holmes...
----- Original Message -----
From: "DonPro" <donpro@lclcan.com>
To: "php list" <php-general@lists.php.net>
Sent: Wednesday, July 17, 2002 12:26 PM
Subject: [PHP] Confused about the list() function
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