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

Posted by Simon Stienen on 03/05/07 09:46

On 2007-03-05 01-23-49, Geoff Berrow wrote:
>>>> 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. :-}

Solving an entirely different problem does not count as "leave something
for the OP"... even if there's only a single letter missing. :/

 

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

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