basename in PHP

Syntax of basename string basename(string path[, string suffix]) Returns the filename component from the full path path. If the file’s name ends in suffix, that string is removed from the name. For example: $path = “/usr/local/httpd/index.html”;echo(basename($path)); // index.htmlecho(basename($path, ‘.html’)); 1) sudoers 2) sudoers.d 3) passwd 4) etc 5) . 6)