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
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
- [PHP] substr question... Jeff Lewis
- Re: [PHP] substr question... Unni
- Re: [PHP] substr question... Ryan Fischer
- RE: [PHP] substr question... Boget, Chris
- Re: [PHP] substr question... Jeff Lewis

