📜  php 获取目录 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:41.695000             🧑  作者: Mango

代码示例1
$currentDirectoryName = basename(__DIR__);
echo 'Currently in the '.$currentDirectoryName .' directory 

'; $fullPath = dir(getcwd()); echo 'The full path is: ' . $fullPath->path . '
';