note 25389 deleted from function.stristr by victor

From: Date: Wed, 02 Oct 2002 10:32:01 +0000
Subject: note 25389 deleted from function.stristr by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-37526@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.

« previous php.notes (#37526) next »