You are here: Re: separate file from its extension « PHP Programming Language « IT news, forums, messages
Re: separate file from its extension

Posted by Geoff Berrow on 03/05/07 00:23

Message-ID: <qoudnQnu5dH8SnfYnZ2dnUVZ_rLinZ2d@comcast.com> from Jerry
Stuckle contained the following:

>>> what function can do this?
>> $file='foo.gif';
>> echo substr($file, 0, strpos($file,".")); // echoes 'foo'
>>
>
>What about foo.bar.gif?

Well you gotta leave something for the OP to do. :-}

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация