note 77370 deleted from function.strrpos by nlopess
| From: | nlopess@php.net | Date: | Sat, 01 Sep 2007 16:32:06 +0000 |
| Subject: | note 77370 deleted from function.strrpos by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-130056@lists.php.net to get a copy of this message | ||
Note Submitter: BoSS
----
to get the filename of a path, use explode
ex:
$string = "http://www.google.com/search";
$string = explode('/',$string);
$string[0] will be: "http:"
$string[1] will be: ""
$string[2] will be: "www.google.com"
$string[3] will be: "search"
hope it helps someone