note 47466 added to function.end
| From: | destesatixdotnetcomdotcom at osu1 dot php dot net | Date: | Wed, 17 Nov 2004 10:43:16 +0000 |
| Subject: | note 47466 added to function.end | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-80632@lists.php.net to get a copy of this message | ||
One tempting use for this function is as a way to extract the filename off the end of $PHP_SELF or a
similar $_ENV or $_SERVER variable.
Rather than doing end(explode("/", $PHP_SELF)) or any other such workaround, consider the
Filesystem function basename(), which is designed for this task.
http://us2.php.net/manual/en/function.basename.php
-Steve
----
Manual Page -- http://www.php.net/manual/en/function.end.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47466
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47466&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47466&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47466&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47466&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47466&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47466&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47466&report=yes
Search -- http://master.php.net/manage/user-notes.php