note 84002 deleted from function.basename by felipe
| From: | felipe@php.net | Date: | Mon, 23 Jun 2008 19:25:50 +0000 |
| Subject: | note 84002 deleted from function.basename by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-140748@lists.php.net to get a copy of this message | ||
Note Submitter: elm_the_magister at hostmail dot com
----
I'll give a little function I've made to know the file name of a file (without any get
post in it). I use if often since many of my script used post variable
<?php
fGetFileName($stringURL)
{
$FileNamePart = explode('/', $stringURL);
$FileName = $FileNamePart[count($FileNamePart)-1];
return FileName;
}
?>