Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns the target of a symbolic link
<?php readlink(string $path): string|false
<?php             while ($file = readdir($dh)) {

                if ($file !== '.' && $file !== '..') {

                    if (is_link($dir.'/'.$file)) {

                        $array[$dir][$file] = readlink($dir.'/'.$file);

                    } elseif (is_dir($dir.'/'.$file)) {

                        if (!count($array)) {

                            $array[0] = 'Temp';
<?php         $this->mkdir(\dirname($targetDir));



        if (is_link($targetDir)) {

            if (readlink($targetDir) === $originDir) {

                return;

            }

            $this->remove($targetDir);
<?php             }



            if ('\\' === \DIRECTORY_SEPARATOR) {

                $path = readlink($path);

            }



            return realpath($path);