note 25389 added to function.stristr

From: Date: Sat, 21 Sep 2002 17:16:28 +0000
Subject: note 25389 added to function.stristr
Groups: php.notes 
Request: Send a blank email to php-notes+get-37091@lists.php.net to get a copy of this message
It is good to use strrev() in case the filename contains more than one dot. Reversing the filename will ensure you pickup the characters after the last dot of the original filename. Example: filename$ = "this.is.a.webpage.html" without reversing the string first, the function will simply return "is.a.webpage.html" as the extension. -- http://www.php.net/manual/en/function.stristr.php http://master.php.net/manage/user-notes.php?action=edit+25389 http://master.php.net/manage/user-notes.php?action=delete+25389 http://master.php.net/manage/user-notes.php?action=reject+25389

« previous php.notes (#37091) next »