Re: substr question...
| From: | Jeff Lewis | Date: | Thu, 26 Jul 2001 19:58:28 +0000 |
| Subject: | Re: substr question... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-59818@lists.php.net to get a copy of this message | ||
RE: [PHP] substr question...I suppose that $tmpmember=substr($entry, 0,-4); will do the same? :)
Jeff
----- Original Message -----
From: Boget, Chris
To: 'Jeff Lewis' ; php-general@lists.php.net
Sent: Thursday, July 26, 2001 3:54 PM
Subject: RE: [PHP] substr question...
> 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
$fileName = eregi_replace( "\.dat", "", $fullFileName );
Chris