note 50746 deleted from function.strrpos by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 10:16:23 +0000 |
| Subject: | note 50746 deleted from function.strrpos by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-196962@lists.php.net to get a copy of this message | ||
Note Submitter:
----
In the below example, it should be substr, not strrpos.
<PHP?
$filename = substr($url, strrpos($url, '/') + 1);
?>