Hem / Tips & tricks
$path = "/home/httpd/html/index.php";$file = basename($path); // $file is set to "index.php"$file = basename($path, ".php"); // $file is set to "index"$file = basename($_GET['page']).'.php';?>