src/LdapTools/Utilities/LdapUtilities.php
public static function isValidAttributeFormat($value)
    {
        return (preg_match(self::MATCH_DESCRIPTOR, $value) || preg_match(self::MATCH_OID, $value));
    }
public static function isValidAttributeFormat($value)
    {
        return (preg_match(self::MATCH_DESCRIPTOR, $value) || preg_match(self::MATCH_OID, $value));
    }
public static function isValidAttributeFormat ( $ value ) { return ( preg_match ( self :: MATCH_DESCRIPTOR , $ value ) || preg_match ( self :: MATCH_OID , $ value ) ) ; }
Determine whether a value is a valid attribute name or OID. The name should meet the format described in RFC 2252.
However, the regex is fairly forgiving for each.

@param string $value
@return bool
Determine whether a value is a valid attribute name or OID . The name should meet the format described in RFC 2252 . However the regex is fairly forgiving for each .