<?php
/**
* For this test someone has written a lot of crap PHP code!
* List all the problems you can find with this code and why it is a problem
*
*/
function countVowelsInFile($f)
{
$content = file_get_contents($f);
$matches = array();
return preg_match_all('/[aeiou]/', $content, $matches);
}
countVowelsInFile(__FILE__);