<?php $str = "The quick brown fox jumps over the lazy dog"; $c = 0; for($i = 1; $i < 44; $i++) { if(in_array(array("a","e","i","o","u"),substr($str,$i-1,$i))) $c++; } echo $c;
You have javascript disabled. You will not be able to edit any code.