<html>
<body>
<h2>Find Number of Vowels in a String - PHP Script by <a href="http://www.tutorialsmade.com/">Tutorialsmade.com</a></h2>
<form action="" method="post">
<input type="text" name="string" />
<input type="submit" />
</form>
</body>
</html>
?php
if($_POST)
{
$string = strtolower($_POST['string']);
$num = preg_match_all('/[aeiou]/i',$string,$matches);
echo "Number of Vowels : ". $num;
}
?>