I merged our bits of code and got this. Doesn't look pretty, but it works :)
$openFile = "eurusd.csv";
$handle = fopen ($openFile,"r");
$array = array();
while($data = fgetcsv ($handle, 1000, ",")) {
$array[] = $data;
}
fclose($handle);
$name = "array";
$size = count($array);
for($i=0...