getcwd() 函数
PHP getcwd() 函数
定义和用法
getcwd() 函数返回当前目录。
若成功,则返回当前工作目录,否则返回 false。
语法
getcwd()
例子
<?php echo getcwd(); ?>
输出:
C:\testweb\main