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