PHP basename May 11, 2012 Pramod T P It returns trailing name component of path Example <?php echo basename(“/var/www/php”); ?> Output php