Re: separating strings from extensions
| From: | Brady Mitchell | Date: | Sun, 17 Feb 2008 23:19:10 +0000 |
| Subject: | Re: separating strings from extensions | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269453@lists.php.net to get a copy of this message | ||
On Feb 17, 2008, at 256PM, Daniel Brown wrote:
On Feb 17, 2008 5:37 PM, nihilism machine <nihilismmachine@gmail.com> wrote:PLEASE start using the PHP manual! http://php.net/pathinfo http://php.net/basename Bradyi am using this code to get the extension of a filename: $extension = strtolower(strrchr($fileName,".")); how can i get the text BEFORE the . (period)You can STFW and RTFM. This list should never be your first place to ask simple questions.