-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathreadcsv.php
More file actions
28 lines (27 loc) · 830 Bytes
/
readcsv.php
File metadata and controls
28 lines (27 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
$csv = array_map('str_getcsv', file($dataFilename));
array_walk($csv, function(&$a) use ($csv) {
$a = array_merge($csv[0], $a);
});
array_shift($csv); # remove column header
foreach ($csv as &$value) {
#print('<a href="' . $value['AuthorPDF'] . '">');
print($value['ReviewVenue'] . ': ' . $value['Title']);
if ($value['AuthorPDF'] !== "")
print(' PDF. ');
else
print(' NOT FOUND. ');
print($value['Authors']);
if ($value['Preregistered'] !== "")
print(' Preregistered');
if ($value['DataCollectionMaterials'] !== "")
print(' Open Materials');
if ($value['Data'] !== "")
print(' Open Data badge');
if ($value['ComputationalMatrials'] !== "")
print(' Open Materials');
#print('</a>');
#print_r($value);
print("\n<br>\n");
}
?>