From 2d7ab4b2f0fb0f1de13390e53ca919fa61380756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Bl=C3=A4ul?= Date: Sun, 21 Jan 2018 18:04:28 +0100 Subject: [PATCH] Added documentation to `parse_string()` Fixes #76 --- parsecsv.lib.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/parsecsv.lib.php b/parsecsv.lib.php index 7c9012d..7b1ff8a 100644 --- a/parsecsv.lib.php +++ b/parsecsv.lib.php @@ -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 *