task_data.php
/**
 * print a given table as headers.
 * 
 * The table must be an array of arrays, the header is an array of values that comprises the first row.
 * 
 * @param unknown $headers
 * @param unknown $table
 */
print a given table as headers.

The table must be an array of arrays, the header is an array of values that comprises the first row.

@param unknown $headers
@param unknown $table
print a given table as headers . The table must be an array of arrays the header is an array of values that comprises the first row . @param unknown $headers @param unknown $table
function print_csv( $headers, $table)
{
	$outstream = fopen("php://output", 'w');
	fputcsv( $outstream, $headers);
	foreach( $table as $row)
	{
		fputcsv( $outstream, array_values( $row));
	}
	fclose( $outstream);
}
function print_csv ( $ headers , $ table ) { $ outstream = fopen ( " php://output " , 'w' ) ; fputcsv ( $ outstream , $ headers ) ; foreach ( $ table as $ row ) { fputcsv ( $ outstream , array_values ( $ row ) ) ; } fclose ( $ outstream ) ; }
print a given table as headers.
print a given table as headers .