note 39258 deleted from function.strrev by didou
| From: | didou@php.net | Date: | Thu, 22 Jan 2004 10:31:25 +0000 |
| Subject: | note 39258 deleted from function.strrev by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-64004@lists.php.net to get a copy of this message | ||
Note Submitter: ray@yourhat.com
----
I found it worked better this way:
$str = strrev($str);
$start = strpos($str, "/");
$str = substr($str,0,$start);