Re: separating strings from extensions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 5:56 PM -0500 2/17/08, Daniel Brown wrote:
On Feb 17, 2008 5:37 PM, nihilism machine <nihilismmachine@xxxxxxxxx> 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)

    You can STFW and RTFM.  This list should never be your first place
to ask simple questions.

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.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux