AbstractVariables::has( string $name )

Tells whether environment variable has been defined.


Parameters

$name

(string) (Required)


Return

(bool)


Source

File: vendor/vlucas/phpdotenv/src/Environment/AbstractVariables.php

    public function has($name)
    {
        return is_string($name) && $this->get($name) !== null;
    }