若加上使用basename() 及dirname() 就能夠篩選出需要的檔名或路徑. 取得路徑+ 副檔名(取得/var/www/project/test.php) echo __FILE__;. 取得檔名(要取得test.php)
確定! 回上一頁