string basename
給定一個含路徑檔名的字串, 這個函式會把檔名傳回 .
Example 1. basename() example
$path = "/home/httpd/html/index.php3"; $file = basename($path); // $file is set to "index.php3"
另參考 : dirname()