|
SplFileObject::setCsvControlSet the delimiter, enclosure and escape character for CSV Description
public void SplFileObject::setCsvControl
([ string
$delimiter = ","
[, string $enclosure = "\""
[, string $escape = "\\"
]]] )Sets the delimiter, enclosure and escape character for parsing CSV fields. Parameters
Return ValuesNo value is returned. Changelog
Examples
Example #1 SplFileObject::setCsvControl example
<?php Contents of data.csv <?php apples|20 bananas|14 cherries|87 ?> See Also
|