- strtoupper: documentation ( source)
- str_split: documentation ( source)
<?php
$chars = str_split("The quick brown fox jumps over the lazy dog.");
foreach ($chars as $char) {
switch (strtoupper($char)) {
case "A":
case "E":
case "I":
case "O":
case "U":
case "Y":
continue;
}
print $char;
}