LSS\Array2XML::isValidTagName PHP Méthode

isValidTagName() private static méthode

* Check if the tag name or attribute name contains illegal characters Ref: http://www.w3.org/TR/xml/#sec-common-syn
private static isValidTagName ( $tag )
    private static function isValidTagName($tag)
    {
        $pattern = '/^[a-z_]+[a-z0-9\\:\\-\\.\\_]*[^:]*$/i';
        return preg_match($pattern, $tag, $matches) && $matches[0] == $tag;
    }