What does the PHP file_exists () function mean with a backslash "\"?

look at the phpunit code to see how to load the configuration file of phpunit. When you call the file_exsits () function, add a backslash "\" in front of it. The code is as follows:

if (isset($this->arguments["configuration"]) &&
            \is_dir($this->arguments["configuration"])) {
            $configurationFile = $this->arguments["configuration"] . "/phpunit.xml";

            if (\file_exists($configurationFile)) {
                $this->arguments["configuration"] = \realpath(
                    $configurationFile
                );
            } elseif (\file_exists($configurationFile . ".dist")) {
                $this->arguments["configuration"] = \realpath(
                    $configurationFile . ".dist"
                );
            }
        } elseif (!isset($this->arguments["configuration"]) &&
            $this->arguments["useDefaultConfiguration"]) {
            if (\file_exists("phpunit.xml")) {
                $this->arguments["configuration"] = \realpath("phpunit.xml");
            } elseif (\file_exists("phpunit.xml.dist")) {
                $this->arguments["configuration"] = \realpath(
                    "phpunit.xml.dist"
                );
            }
        }

if (\ file_exists ("phpunit.xml")) what does this mean? Can you specify to find the "phpunit.xml" file from the root directory? ;

Mar.20,2021

PHP uses a backslash when representing a namespace. A single backslash here indicates that a global method is called within the current namespace. For more information, please see the namespace-related materials.
file_exists (path)
this is the usage, which is to find out whether the file exists in the specified path.

Menu