PHP - How to detect second vowel and trim the word? : <p>How can I detect the second vowel of a given word with php and trim the word by following consonant? I tried with preg_match  function but couldn't find a proper solution.</p>

<pre><code>//given word

$string = "engineering";

//output should be

echo "engin";
</code></pre>
