Re: substr question...
| From: | Unni | Date: | Thu, 26 Jul 2001 19:46:46 +0000 |
| Subject: | Re: substr question... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-59815@lists.php.net to get a copy of this message | ||
try
$filename=explode(".", names);
echo $filename[0]
Jeff Lewis wrote:
I am trying to receive file names but can't quite figure out the proper substr to do it: jeff.dat jeffrey.dat chris.dat tom.dat I want to receive the name to the left of the .dat Jeff