本页内容

PHP getcwd() 函数

Category:PHP Directory 文件目录参考手册

获取当前工作目录:


示例

<?php
echo getcwd()
?>

结果:


示例

/home/php

定义和用法

getchwd() 函数返回当前工作目录。

语法

    getcwd();

技术细节

返回值: 成功则返回当前工作目录。失败则返回 FALSE。
PHP 版本: 4.0+

Category:PHP Directory 文件目录参考手册

此页面最后编辑于2022年8月17日 (星期三) 22:14。