note 66790 added to function.strstr
| From: | atom14x7 at gmail dot com | Date: | Mon, 29 May 2006 11:27:34 +0000 |
| Subject: | note 66790 added to function.strstr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-112490@lists.php.net to get a copy of this message | ||
With regard to mikkel at hansen dot net on 15-Apr-2005 01:04..
Wouldn't it just be easier (and presumably less memory-intensive) to use the following?
<?php
function file_extension($filename) {
return substr($filename,strrpos($filename,'.')+1);
}
?>
----
Server IP: 84.18.202.180
Probable Submitter: 84.71.19.115
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.strstr.php
Edit -- http://master.php.net/note/edit/66790
Del: integrated -- http://master.php.net/note/delete/66790/integrated
Del: useless -- http://master.php.net/note/delete/66790/useless
Del: bad code -- http://master.php.net/note/delete/66790/bad+code
Del: spam -- http://master.php.net/note/delete/66790/spam
Del: non-english -- http://master.php.net/note/delete/66790/non-english
Del: in docs -- http://master.php.net/note/delete/66790/in+docs
Del: other reasons-- http://master.php.net/note/delete/66790
Reject -- http://master.php.net/note/reject/66790
Search -- http://master.php.net/manage/user-notes.php