PHP: basename - Manual - PHP: Hypertext Preprocessor
If your path has a query string appended, and if the query string contains a "/" character, then the suggestions for extracting the filename offered below don't work. For instance if the path is like this: http://www.ex.com/getdat.php?dep=n/a&title=boss T...