src/DataTable.php
protected static function sendCsv($data)
    {
        header("Content-Disposition: attachment; filename=".uniqid('dataExpl').'.csv');
        header("Content-Type: application/force-download");
        header("Content-Type: application/octet-stream");
        header("Content-Type: application/download");
        header("Content-Description: File Transfer");
        exit(Helper::arrayToCsv($data));
    }
protected static function sendCsv($data)
    {
        header("Content-Disposition: attachment; filename=".uniqid('dataExpl').'.csv');
        header("Content-Type: application/force-download");
        header("Content-Type: application/octet-stream");
        header("Content-Type: application/download");
        header("Content-Description: File Transfer");
        exit(Helper::arrayToCsv($data));
    }
protected static function sendCsv ( $ data ) { header ( "Content-Disposition: attachment; filename=" . uniqid ( 'dataExpl' ) . '.csv' ) ; header ( "Content-Type: application/force-download" ) ; header ( "Content-Type: application/octet-stream" ) ; header ( "Content-Type: application/download" ) ; header ( "Content-Description: File Transfer" ) ; exit ( Helper :: arrayToCsv ( $ data ) ) ; }
Return the csv

@param array $data
Return the csv