basename

PHP 4, PHP 5, PHP 7, PHP 8
basename - Returns trailing name component of path

Example #1 basename example

Result: 1) sudoers 2) sudoers.d 3) passwd 4) etc 5) . 6)
PHP Version:


Example #2 of basename

PHP Version:


Function basename:

Filesystem Functions

Most used PHP functions