note 91381 deleted from function.substr by danbrown
| From: | danbrown@php.net | Date: | Tue, 09 Jun 2009 13:22:52 +0000 |
| Subject: | note 91381 deleted from function.substr by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-156607@lists.php.net to get a copy of this message | ||
Note Submitter: info at xQmail dot eu
----
in reply to: kaysar in ymail in com
If you want the filename without the extension, just use this:
<?php
$filename = substr($filename, 0, strrpos($filename, '.'));
?>