您正在寻找
basename。
PHP手册中的示例:
<?php$path = "/home/httpd/html/index.php";$file = basename($path); // $file is set to "index.php"$file = basename($path, ".php"); // $file is set to "index"?>

您正在寻找
basename。
PHP手册中的示例:
<?php$path = "/home/httpd/html/index.php";$file = basename($path); // $file is set to "index.php"$file = basename($path, ".php"); // $file is set to "index"?>