Simple way to parse CSV

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

Simple way to parse CSV

Post by GeXus »

I have a very simple CSV file...

It's setup like this...

fieldone, fieldtwo
fieldthree, fieldfour


How would you parse this so you could ultimatly seperate the first column items from the second column items?
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

I would recommend my own CSV class...although it may be overkill for simple CSV handling.

viewtopic.php?t=47855
Post Reply