Changeset 2646 for trunk/system/helpers/file.php
- Timestamp:
- 05/06/2008 02:19:24 PM (7 months ago)
- Files:
-
- 1 modified
-
trunk/system/helpers/file.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/helpers/file.php
r2374 r2646 11 11 */ 12 12 class file_Core { 13 14 /** 15 * Get the extension of a filename. 16 * 17 * @param string filename 18 * @return string 19 */ 20 public static function extension($filename) 21 { 22 // Return the extension of the filename 23 return preg_replace('/^.+\.(.+?)$/', '$1', $filename); 24 } 13 25 14 26 /**
