title: How to find the extension of an image from path in PHP?
body: <p>Is there any standard function in PHP to find only extension of an image from the corresponding file path?</p>
  
  <p>For example ff my image path is like '/testdir/dir2/image.gif' then the function should return 'gif'.</p>
  
  <p>Thanks</p>