Hi,
Ich habe bei
array str_getcsv ( string $input [, string $delimiter = ',' [, string $enclosure = '"' [, string $escape = '\' ]]] )
> aufgehört zu lesen und habe mir selber etwas geschrieben.
> Was soll der $escape sein?
> Scheinbar funktioniert die Funktion doch so, wie ich es erwarten würde, aber was soll das $escape sein?
Na ein optionales Maskierungszeichen für den Fall, dass der Feldinhalt den Feldbegrenzer enthält.
<http://en.wikipedia.org/wiki/Comma-separated_values#Technical_background>:
> More sophisticated CSV implementations permit [special characters], often by requiring " (double quote) characters around values that contain reserved characters (such as commas, double quotes, or less commonly, newlines). Embedded double quote characters may then be represented by a pair of consecutive double quotes (Creativyst 2010), or by prefixing an escape character such as a backslash (for example in Sybase Central).
MfG ChrisB
--
Autocomplete has spoiled me to a point where it happens every so often that I encounter a CAPTCHA, and I just type in the first character … and then wait for the rest of the code to be automatically suggested :/