Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Gets the current working directory
<?php getcwd(): string|false
<?php     private function replaceCwd($file)

    {

        $cwd = getcwd();

        if ($cwd === false) {

            return $file;

        }