Date: 07/17/02
- Next message: Jay Blanchard: "RE: [PHP] Tips for better PHP, wish I read yesterday"
- Previous message: Analysis & Solutions: "Re: [PHP] Classes Constructor syntax"
- In reply to: DonPro: "[PHP] Confused about the list() function"
- Next in thread: Asmodean: "Re: [PHP] Confused about the list() function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Jay Blanchard: "RE: [PHP] Tips for better PHP, wish I read yesterday"
- Previous message: Analysis & Solutions: "Re: [PHP] Classes Constructor syntax"
- In reply to: DonPro: "[PHP] Confused about the list() function"
- Next in thread: Asmodean: "Re: [PHP] Confused about the list() function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

