Transform.php
public static function arrayToCsvFile($filename, $data)
    {
        $fp = fopen($filename, 'w');

        foreach ($data as $fields) {
            fputcsv($fp, $fields);
        }

        fclose($fp);
    }
public static function arrayToCsvFile($filename, $data)
    {
        $fp = fopen($filename, 'w');

        foreach ($data as $fields) {
            fputcsv($fp, $fields);
        }

        fclose($fp);
    }
public static function arrayToCsvFile ( $ filename , $ data ) { $ fp = fopen ( $ filename , 'w' ) ; foreach ( $ data as $ fields ) { fputcsv ( $ fp , $ fields ) ; } fclose ( $ fp ) ; }
Transform array data to csv file
@param $filename
@param $data
Transform array data to csv file