Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // usage: csv("intermed_meta.csv") gets you the 2d array for that csv file, blanks and all
- function csv($fname){
- $out = array();
- if (($handle = fopen($fname, "r")) !== FALSE) {
- while (($data = fgetcsv($handle)) !== FALSE) {
- $out[] = $data;
- }
- fclose($handle);
- }
- return $out;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement