Esempio n. 1
0
 /**
  * Converts an array into a CSV file, outputs it with the appropriate HTTP header, and terminates program execution.
  * 
  * @param array $csv The array to convert and output
  * 
  * @return false Returns a value only if conversion failed
  */
 function export_csv($csv)
 {
     header("Content-Type: text/csv");
     $result = suio::print_csv($csv);
     if ($result) {
         die;
     } else {
         return false;
     }
 }