SplFileObject::getCsvControl

Get the delimiter, enclosure and escape character for CSV

&reftitle.description; public `array` `SplFileObject::getCsvControl`

Gets the delimiter, enclosure and escape character used for parsing CSV fields.

&reftitle.parameters; &no.function.parameters;
&reftitle.returnvalues;

Returns an indexed array containing the delimiter, enclosure and escape character.

&reftitle.changelog;

&Version; | &Description;
7.4.0 | The escape character can now be an empty string.
7.0.10 | Added the escape character to the returned array.

&reftitle.examples;

### `SplFileObject::getCsvControl` example

    <?php
    $file = new SplFileObject("data.txt");
    print_r($file->getCsvControl());
    ?>

&example.outputs.similar;

    Array
    (
        [0] => ,
        [1] => "
        [2] => \
    )

&reftitle.seealso;

- `SplFileObject::setCsvControl`
- `SplFileObject::fgetcsv`
- `SplFileObject::fputcsv`
- `fputcsv`
- `fgetcsv`
- `str_getcsv`