Re: separating strings from extensions

From: Date: Mon, 18 Feb 2008 16:53:40 +0000
Subject: Re: separating strings from extensions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-269491@lists.php.net to get a copy of this message
On Sun, February 17, 2008 4:37 pm, nihilism machine wrote: > i am using this code to get the extension of a filename: > > $extension = strtolower(strrchr($fileName,".")); > > how can i get the text BEFORE the . (period) http://php.net/basename -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So?

« previous php.general (#269491) next »