例如,我如何获得 Output.map
Output.map
从
F:\Program Files\SSH Communications Security\SSH Secure Shell\Output.map
用PHP?
您正在寻找basename。
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" ?>