note 26834 deleted from function.basename by nlopess
| From: | nlopess@php.net | Date: | Fri, 26 Dec 2003 19:32:05 +0000 |
| Subject: | note 26834 deleted from function.basename by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-62516@lists.php.net to get a copy of this message | ||
Note Submitter: simon@blueshell.dk
----
basename() and dirname() both accept a relative path/filename as input. Example:
print basename('./public_html/index.php'); /* returns 'index.php' here */