(PHP 5 >= 5.2.0, PHP 7)
Set the delimiter and enclosure character for CSV
public void SplFileObject::setCsvControl ([ string $delimiter = "," [, string $enclosure = "\"" [, string $escape = "\\" ]]] )
Sets the delimiter and enclosure character for parsing CSV fields.
Parameters:
delimiter
The field delimiter (one character only).
enclosure