Added documentation to parse_string()

Fixes #76
This commit is contained in:
Christian Bläul
2018-01-21 18:04:28 +01:00
committed by Fonata
parent 2bf4a2d0cd
commit 2d7ab4b2f0

View File

@@ -560,7 +560,14 @@ class parseCSV {
} }
/** /**
* Parse CSV strings to arrays * Parse CSV strings to arrays. If you need BOM detection or character
* encoding conversion, please call load_data() first, followed by a call to
* parse_string() with no parameters.
*
* To detect field separators, please use auto() instead.
*
* Also, while load_data() can handle a lacking new-line char at the end of
* the string, this function cannot.
* *
* @param string $data CSV data * @param string $data CSV data
* *