Jump to content

Extracting The Image Name


greg

Recommended Posts

Hi,

How can I extract from the variable $requestedimage only the image name?

$requestedimage = $_GET['pID'];

 

I appreciate if someone can give me a hand on here.

Thanks

images/9998/bar3400.gif >>>> extract bar3400.gif

images/20125/gt23122.gif >>>> extract gt23122.gif

images/202/gr_open453.gif >>>> gr_open453.gif

images/2021/hllleat875.jpg >>>> hllleat875.jpg

Link to comment
https://forums.phpfreaks.com/topic/269511-extracting-the-image-name/
Share on other sites

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.