Re: separating strings from extensions
| From: | tedd | Date: | Mon, 18 Feb 2008 20:02:42 +0000 |
| Subject: | Re: separating strings from extensions | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269524@lists.php.net to get a copy of this message | ||
At 5:56 PM -0500 2/17/08, Daniel Brown wrote:
On Feb 17, 2008 5:37 PM, nihilism machine <nihilismmachine@gmail.com> wrote:Besides, it confuses us. We think it's a trick question and have to think very hard about it. After realizing that it's a simple question, then we get all strange and stuff and start slobbering. Which in turn, shorts out our keyboards and we start typing all sorts of funny stuff. So, just don't do it. It was bad enough that you used the variable named $extension and then asked what came before it, which is more a prefix type question -- see how confusing asking a simple question can become. So, just don't do it -- or did I already say that? Cheers, tedd (wiping off keyboard) -- ------- http://sperling.com http://ancientstones.com http://earthstones.comi 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 placeto ask simple questions.