note 66790 deleted from function.strstr by bjori

From: Date: Mon, 29 May 2006 12:08:43 +0000
Subject: note 66790 deleted from function.strstr by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-112493@lists.php.net to get a copy of this message
Note Submitter: atom14x7 at gmail dot com ---- 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); } ?>

« previous php.notes (#112493) next »