note 38711 deleted from function.strrev by nlopess
| From: | nlopess@php.net | Date: | Sun, 04 Jan 2004 11:01:08 +0000 |
| Subject: | note 38711 deleted from function.strrev by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-62892@lists.php.net to get a copy of this message | ||
Note Submitter: Ray Paseur
----
I find that it works better this way:
function getScriptName($str){
$str = strrev($str);
$start = strpos($str, "/");
$str = substr($str, 0, $start);
return ($str=strrev($str));
}