Hello,

"Justin French" <[EMAIL PROTECTED]> wrote:

[snip]
> Sample line from your CSV should look like this:
> 
> ---
> "1","foo","harry said \"what is it?\"","foo"
> "1","bah","\"don't know\" said sally","something"
> ---
> 
> When echoing these values to the browser, you would strip the slashes.
[/snip]

The double quotes aren't really necessary unless
1. You have a comma in the field
2. You have double quotes in the field

So,

  1,foo,"Harry said ""what is it""",foo

would have no problem with fgetcsv().

And, btw, the " are also "escaped" with another ".

- E

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

Reply via email to