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.
Parser::isValidName( string $name )
Is the given variable name valid?
Parameters
- $name
-
(Required)
Return
(bool)
Source
File: vendor/vlucas/phpdotenv/src/Parser.php
private static function isValidName($name)
{
return preg_match('~\A[a-zA-Z0-9_.]+\z~', $name) === 1;
}