src/Connections/Ldap.php
public function escape($value, $ignore = '', $flags = 0)
    {
        if (!$this->isEscapingSupported()) {
            return $this->escapeManual($value, $ignore, $flags);
        }

        return ldap_escape($value, $ignore, $flags);
    }
public function escape($value, $ignore = '', $flags = 0)
    {
        if (!$this->isEscapingSupported()) {
            return $this->escapeManual($value, $ignore, $flags);
        }

        return ldap_escape($value, $ignore, $flags);
    }
public function escape ( $ value , $ ignore = '' , $ flags = 0 ) { if ( ! $ this -> isEscapingSupported ( ) ) { return $ this -> escapeManual ( $ value , $ ignore , $ flags ) ; } return ldap_escape ( $ value , $ ignore , $ flags ) ; }
Returns an escaped string for use in an LDAP filter.

@param string $value
@param string $ignore
@param $flags

@return string
Returns an escaped string for use in an LDAP filter .