Caitlin-havener Posted June 26, 2012 Share Posted June 26, 2012 Hey there! I'm trying to read in a csv and split the data at commas unless the string is encapsulated between double quotes. How would I do this? I know the function, its just the regular expression that confuses me! Link to comment Share on other sites More sharing options...
justsomeguy Posted June 26, 2012 Share Posted June 26, 2012 There are a few user-contributed functions on this page, most of them don't use regular expressions to parse the entire line though: http://www.php.net/manual/en/function.str-getcsv.php Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now