basename

basename — Returns trailing name component of path

basename(string $path, string $suffix = “”): string

Given a string containing the path to a file or directory, this function will return the trailing name component i.e. skip all the directory path before the name.

Input:
[?]

Have Feedback?

Let us know how we can improve this tool.
Share Feedback