Re: [PHP] Confused about the list() function From: 1LT John W. Holmes (holmes072000 <email protected>)
Date: 07/17/02

How do you want to parse the string? why not just echo $color_list?

---John Holmes...

----- Original Message -----
From: "DonPro" <donpro <email protected>>
To: "php list" <php-general <email protected>>
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php