PHP getcwd() 函数实例定义和用法语法技术细节PHP getcwd() 函数实例获取当前工作目录: <?phpecho getcwd()?> 结果: /home/php 定义和用法getchwd() 函数返回当前工作目录。 语法getcwd(); 技术细节 返回值: 若成功则返回当前工作目录。失败则返回 FALSE。 PHP 版本: 4.0+