Jump to content

Manipulate a CSV file


solarisuser

Recommended Posts

Hello All!

I have a comma delimited file and I want to remove the start of the line until it hits the first comma.

For example:

23-28331,Blah,Blah Blah, Blah
27-442-9,Blah2, Blahhhh, Blah Blah Blah


I would like to end up with:

Blah, Blah Blah, Blah
Blah2, Blahhhh, Blah Blah Blah

Should I look into preg_replace, split, or something else?

Any ideas or code would be greatly appriciated!
Link to comment
https://forums.phpfreaks.com/topic/16176-manipulate-a-csv-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.