public function parseCsv($file)
    {
        $handle = fopen($file, 'r');

        if (!is_resource($handle)) {
            return array();
        }

        $content = array();

        while (($data = fgetcsv($handle)) !== false) {
            $content[] = $data;
        }

        fclose($handle);
        return $content;
    }
public function parseCsv($file)
    {
        $handle = fopen($file, 'r');

        if (!is_resource($handle)) {
            return array();
        }

        $content = array();

        while (($data = fgetcsv($handle)) !== false) {
            $content[] = $data;
        }

        fclose($handle);
        return $content;
    }
public function parseCsv ( $ file ) { $ handle = fopen ( $ file , 'r' ) ; if ( ! is_resource ( $ handle ) ) { return array ( ) ; } $ content = array ( ) ; while ( ( $ data = fgetcsv ( $ handle ) ) !== false ) { $ content [ ] = $ data ; } fclose ( $ handle ) ; return $ content ; }
Parse a translation file
@param string $file
@return array
Parse a translation file