Re: separating strings from extensions

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

 




On Feb 17, 2008, at 256PM, 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.

PLEASE start using the PHP manual!

http://php.net/pathinfo
http://php.net/basename

Brady

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