PHP basename function

The basename() function returns the name of the last element in the given path. The suffix option allows us to remove any suffix it has.

read more