note 88430 deleted from function.basename by danbrown
| From: | danbrown@php.net | Date: | Fri, 23 Jan 2009 18:04:23 +0000 |
| Subject: | note 88430 deleted from function.basename by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-149709@lists.php.net to get a copy of this message | ||
Note Submitter: Liam Morland
----
I think the last one is supposed to be like this:
<?php
function nameOnly($path){
$full_name = basename($path);
return (substr($full_name, 0, strrpos($full_name, '.')));
}
?>