tags:

views:

119

answers:

1

I'm trying to get rid of everything before the filename ex:

/home/mike/whatever/test_1.txt

leaving only test_1.txt

what would the simplest way?

thanks

+15  A: 

basename()

Rob
Quite possibly the best answer I've seen on stackoverflow.
gaoshan88
Simple and too the point, perfect.
stukelly
Ditto to the previous comments.
Matt Hanson