note 41641 deleted from function.filetype by tomsommer
| From: | tomsommer@php.net | Date: | Sat, 17 Apr 2004 21:54:23 +0000 |
| Subject: | note 41641 deleted from function.filetype by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-68266@lists.php.net to get a copy of this message | ||
Note Submitter: kristian@nybro.dk
----
If you need the EXTENSION of a file you can use this small function:
string getExt(string filename)
<?php
function getExt($file)
{
if ($temp=strrchr($file, "."))
return substr($temp,1);
else
return "";
}
?>