<?php
function find_value($filename, $value) {
$f = fopen($filename, "r");
$result = 'false';
while ($row = fgetcsv($f, 0,";")) {
if ($row[0] == $value) {
$result = $row[1];
break;
}
}
fclose($f);
return $result;
}
echo(find_value('test.csv', '66:41:0000000:1004'));
?>