$file = basename($path); // index.php $file = basename($path, ".php"); // index $dir = dirname($path); // /home/httpd/html 注意沒有尾端的'/'.
確定! 回上一頁