下例中的 $file 变数值为 "index.php"<?php
$path = "/home/httpd/html/index.php";
$file = basename($path);
?>