MetaModels\Helper\TableManipulation::isValidMySQLIdentifier PHP Method

isValidMySQLIdentifier() public static method

Ensure that an identifier is valid in MySQL context.
public static isValidMySQLIdentifier ( string $strName ) : boolean
$strName string The identifier to check.
return boolean
    public static function isValidMySQLIdentifier($strName)
    {
        // Match for valid table/column name, according to MySQL, a table name must start
        // with a letter and must be combined of letters, decimals and underscore.
        return 1 == preg_match('/^[a-z_][a-z\\d_]*$/i', $strName);
    }