tcorbeil Posted March 28, 2007 Share Posted March 28, 2007 Hello again. if I have a variable = /home/sports/hockey/oilers/oilers.php, what is the easiest way to trim all of the address so that I just get the file name (variable2 = oilers.php? Thanks again. T. Link to comment https://forums.phpfreaks.com/topic/44633-solved-question-re-trimming/ Share on other sites More sharing options...
trq Posted March 28, 2007 Share Posted March 28, 2007 Use basename. Link to comment https://forums.phpfreaks.com/topic/44633-solved-question-re-trimming/#findComment-216734 Share on other sites More sharing options...
tcorbeil Posted March 28, 2007 Author Share Posted March 28, 2007 Thanks Thorpe Link to comment https://forums.phpfreaks.com/topic/44633-solved-question-re-trimming/#findComment-216741 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.