Raised This Month: $ Target: $400
 0% 

A little PHP help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 08-28-2006 , 20:12   A little PHP help
Reply With Quote #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!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode