Delete/Remove Vowels from string in PHP


<?php

$str = "My name is tausif. welcome.";
$vowels = array("a", "e","i","o","u","A","E","I","O","U");

$str = str_replace($vowels, "", $str);
echo $str;

?>