note 49939 deleted from function.count by googleguy
| From: | googleguy@php.net | Date: | Mon, 17 Sep 2012 00:15:06 +0000 |
| Subject: | note 49939 deleted from function.count by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-190836@lists.php.net to get a copy of this message | ||
Note Submitter: david _at_ webgroup _dot_ org
----
While michael at htmlland dot net's code works, I believe it is better to use:
$extension=substr($file,strrpos($file,".")+1);
This doesn't incur the overhead of array handling. I haven't tested it for time
functions, but it should work just as well and SHOULD be faster.