PHP CSV Parser
Yoanna
Originally uploaded by …cathzilla.
Long time no posts, sorry, but I’m pretty busy working on a new website for movida, on movida itself and trying to have a life (that’s hard, duh!!).
I was looking for a nice CSV file parser in PHP (subliminal message: PHP sucks) and came up with Ming Hong Ng’s version. Nothing special, just a good old CSV parser but the code was good and properly formatted, so a great chance to be lazy.
I have added a few more PHP horror to provide alternative output modes that are IMHO more usable for non-androids: associative arrays and objects (PHP5 required for magical dynamic object creation © ®!)
Feel free to have a look at the source code . Don’t expect anything exciting. It’s a CSV parser in PHP (not even perl!) and not a movie with Charlize Theron! Oh man, I love that woman ![]()
Ok that’s all for today. Have a nice Wednesday evening, Wednesday night, Thursday morning, Thursday evening and well, you should be able to figure it out now.
I suppose I won’t be posting until next year as I’m moving to my parent’s home and to a good ol’ 56K dial-up.
So, I wish you a merry Christmas and a happy new year or whatever you feel you should call the next two weeks. Don’t eat to much cookies and.. oh what the heck! See ya the next time!
