title: Get extension from filename like variable
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/173868/how-to-extract-a-file-extension-in-php">How to extract a file extension in PHP?</a>  </p>
  </blockquote>
  
  
  
  <p>I have a variable <code>$filename="filename.ext"</code> or <code>$filename="filena.m.e.ext"</code> or so on.. How can i extract the extension (here <code>ext</code>) from the variable / string? The variable may change or may have more than one dots.. In that case, i want to get the part after the last dot..</p>