- substr: documentation ( source)
<?php
$str = "The quick brown fox jumps over the lazy dog";
$c = 0;
for($i = 1; $i < 44; $i++) {
if(in_array(substr($str,$i-1,$i),array("a","e","i","o","u"))) $c++;
}
echo $c;
This script was stopped while abusing our resources