note 47466 deleted from function.end by sean
| From: | sean@php.net | Date: | Wed, 17 Nov 2004 19:12:40 +0000 |
| Subject: | note 47466 deleted from function.end by sean | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-80662@lists.php.net to get a copy of this message | ||
Note Submitter: destes at ix dot netcom dot com
----
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
----
Reason: useless note