Thanks, but you totally misunderstood me. I'm not looking to get normal CSV data (as in foo,bar,foobar), I'm looking to get CSV data with parameters and get each piece of data and its parameter. For example, I have a string something like foo(data),bar(data),foobar(data). I need to get each parameter, and each value, and put them into arrays. I also need to have a way to escape any )s in the parameter.

Marek Kilimajer wrote:

fgetcsv() - for reading the file
str_replace('(', '\(', $string) - for escaping )s

Leif K-Brooks wrote:

I'm trying to parse CSV data with parameters, i.e. foo(something),bar(something),something(foobar). Any suggestions on doing this, hopefully with some way to escape )s in the parameters?


--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to