note 25594 deleted from function.basename by nlopess

From: Date: Fri, 26 Dec 2003 19:31:49 +0000
Subject: note 25594 deleted from function.basename by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62515@lists.php.net to get a copy of this message
Note Submitter: ibyte@SPAMMEANDDIEnoxs.nl ---- I have a small amendment to darianlassan's 'filename without path and extension' line: $filename = current(explode('.', basename($SCRIPT_NAME))); As it says on the split() page: "Note that if you don't require the power of regular expressions, it is faster to use explode(), which doesn't incur the overhead of the regular expression engine."

« previous php.notes (#62515) next »