<?php $str = "aeiou"; $c = 0; for($i = 0; $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.