note 77370 added to function.strrpos
| From: | BoSS at osu1 dot php dot net | Date: | Sun, 26 Aug 2007 21:18:02 +0000 |
| Subject: | note 77370 added to function.strrpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129823@lists.php.net to get a copy of this message | ||
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
----
Server IP: 200.185.126.110
Probable Submitter: 189.33.101.56
----
Manual Page -- http://www.php.net/manual/en/function.strrpos.php
Edit -- https://master.php.net/note/edit/77370
Del: integrated -- https://master.php.net/note/delete/77370/integrated
Del: useless -- https://master.php.net/note/delete/77370/useless
Del: bad code -- https://master.php.net/note/delete/77370/bad+code
Del: spam -- https://master.php.net/note/delete/77370/spam
Del: non-english -- https://master.php.net/note/delete/77370/non-english
Del: in docs -- https://master.php.net/note/delete/77370/in+docs
Del: other reasons-- https://master.php.net/note/delete/77370
Reject -- https://master.php.net/note/reject/77370
Search -- https://master.php.net/manage/user-notes.php