This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Lines::isComment( string $line )

Determine if the line in the file is a comment, e.g. begins with a #.


Parameters

$line

(Required)


Return

(bool)


Source

File: vendor/vlucas/phpdotenv/src/Lines.php

    private static function isComment($line)
    {
        $line = ltrim($line);

        return isset($line[0]) && $line[0] === '#';
    }