PHP 7 getcwd() Function
Example
Get the current working directory:
<?php
echo getcwd();
?>
Result:
 /home/php
Definition and Usage
The getcwd() function returns the current working directory.
Syntax
getcwd()
Technical Details
| Return Value: | The current working directory on success, FALSE on failure. | 
|---|---|
| PHP Version: | 4.0+ | 
❮ PHP Directory Reference

