note 23115 added to function.basename
| From: | php-general at lists dot php dot net | Date: | Tue, 09 Jul 2002 21:09:41 +0000 |
| Subject: | note 23115 added to function.basename | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32818@lists.php.net to get a copy of this message | ||
In reply to jsteele@snl.com:
You should really use strrpos instead of reversing the string, using strpos with substr, and then
reversing it a second time. I'm assuming that strrpos would automatically do that for you if
needed.
--
http://www.php.net/manual/en/function.basename.php
http://master.php.net/manage/user-notes.php?action=edit+23115
http://master.php.net/manage/user-notes.php?action=delete+23115
http://master.php.net/manage/user-notes.php?action=reject+23115