note 16627 deleted from function.explode by jimw
| From: | jimw@php.net | Date: | Thu, 08 Nov 2001 00:03:36 +0000 |
| Subject: | note 16627 deleted from function.explode by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-20570@lists.php.net to get a copy of this message | ||
Here's some simple code to get the name of the current file, sans path:
$self_path_array = explode('/', $PHP_SELF);
$self_filename = $self_path_array[count($self_path_array) - 1];