greg Posted October 16, 2012 Share Posted October 16, 2012 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 More sharing options...
Pikachu2000 Posted October 16, 2012 Share Posted October 16, 2012 basename Link to comment https://forums.phpfreaks.com/topic/269511-extracting-the-image-name/#findComment-1385435 Share on other sites More sharing options...
greg Posted October 16, 2012 Author Share Posted October 16, 2012 Thanks! Link to comment https://forums.phpfreaks.com/topic/269511-extracting-the-image-name/#findComment-1385441 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.