Jump to content

Archived

This topic is now archived and is closed to further replies.

komquat

How to strip the extension

Recommended Posts

I am looking for advice on how to strip an extension of a file name.

example

File name: lighthouse.jpg

I want to get: lighthouse

Thanks again

Share this post


Link to post
Share on other sites
Look at the functions [a href=\"http://www.php.net/path_info\" target=\"_blank\"]path_info[/a]() and [a href=\"http://www.php.net/basename\" target=\"_blank\"]basename[/a]().

Ken

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.