Jump to content

Ignore last 4 characters


sungpeng

Recommended Posts

but if it were a file like 'bedroom.old.jpg', explode wouldn't work?

well it would, but you'd only get 'bedroom' and not 'bedroom.old'

you can use the pathinfo() function

http://us3.php.net/manual/en/function.pathinfo.php

 

$file = 'bedroom.jpg';

$filename = pathinfo($bedroom, PATHINFO_FILENAME);

Archived

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

×
×
  • Create New...

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.