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]

Reply via email to