title: How to get the file extension in PHP?
body: <p>I wish to get the file extension of an image I am uploading, but I just get an array back. </p>
  
  <pre><code>$userfile_name = $_FILES['image']['name'];
  $userfile_extn = explode(".", strtolower($_FILES['image']['name']));
  </code></pre>
  
  <p>Is there a way to just get the extension itself?</p>