note 29063 deleted from function.strchr by didou
| From: | didou@php.net | Date: | Sat, 16 Aug 2003 19:57:49 +0000 |
| Subject: | note 29063 deleted from function.strchr by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54441@lists.php.net to get a copy of this message | ||
Note Submitter: john at thedorners dot com
----
Another way to get the text prior to the last occurrence of a string is:
$first_part = str_replace (strrchr ($string, "/"), "", $string);