Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $f = $db->r( 'table', '*' );
- $csv = fopen( 'namafile.csv', 'w' );
- foreach ( $f as $k => $v ) {
- fputcsv( $csv, implode( ',' $v ) );
- }
- fclose( $csv );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement