PHP Snippets: strings vowel cut


$txt = "Example";
$vowels = array("a","e","i","o","u","A","E","I","O","U");
$cut = str_replace($vowels, '', $txt);

echo $cut;