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