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. :/
[Back to original message]
|