getExtension.php 153 B

12345678910111213
  1. <?php
  2. function getExtension($filename) {
  3. $extension = strpos($filename, '.') !== false
  4. ? strrchr($filename, '.')
  5. : '';
  6. return $extension;
  7. }
  8. ?>