PHP program to count number of vowels in a given string.
<?php
//Licence: https://bit.ly/2CFA5XY
function count_Vowels($string)
{
preg_match_all('/[aeiou]/i', $string, $matches);
return count($matches[0]);
}
print_r(count_Vowels('sampleInput'));
?>
Output:
4
