// not case sensetive replace // use "/[..]/i" for case sensetivie result $string = preg_replace("/[aeiou]/", '', $string);