|
Author
|
Message
|
|
Senior Member
Join Date: Mar 2004
Location: PA
|

08-28-2006
, 20:12
A little PHP help
|
#1
|
I am working on my fathers website right now and I have run into a stupid yet probably easy PHP problem. I need to split up a line that has items seperated by commas and each item is inside quotes. The problem is, inside some of the quotes are more commas. This is how a line looks for instance:
"green", "blue", "yellow, red", "orange"
I want to be able to split it up into:
green
blue
yellow, red
orange
I have it setup like so:
list($green, $blue, $yellowred, $orange) = split('REGEXBLAH!', $line);
$line is a line of a file that holds the information. All help will be appreciated.
__________________
More updates for Matrix Mod!
|
|
|
|