public static function getOption($name)
    {
        // Convert
        $constantName = self::getOptionName($name);

        if (!\defined($constantName)) {
            throw new LdapException(sprintf('Unknown option "%s".', $name));
        }

        return \constant($constantName);
    }
public static function getOption($name)
    {
        // Convert
        $constantName = self::getOptionName($name);

        if (!\defined($constantName)) {
            throw new LdapException(sprintf('Unknown option "%s".', $name));
        }

        return \constant($constantName);
    }
public static function getOption ( $ name ) { // Convert $ constantName = self :: getOptionName ( $ name ) ; if ( ! \ defined ( $ constantName ) ) { throw new LdapException ( sprintf ( 'Unknown option "%s".' , $ name ) ) ; } return \ constant ( $ constantName ) ; }
Fetches an option's corresponding constant value from an option name.
The option name can either be in snake or camel case.

@param string $name

@return int

@throws LdapException
Fetches an option s corresponding constant value from an option name . The option name can either be in snake or camel case .