Basename is the name of a file, without the file’s path, but including the extension.
In /var/www/index.php, the base name is index.php.
/var/www/index.php
index.php
Documentation
Related : dirname
Contents: