Horde_Ldap::quote PHP Method

quote() public static method

Escapes characters with special meaning in LDAP searches.
public static quote ( string $clause ) : string
$clause string The string to escape.
return string The escaped string.
    public static function quote($clause)
    {
        return str_replace(array('\\', '(', ')', '*', ""), array('\\5c', '\\(', '\\)', '\\*', "\\00"), $clause);
    }