PMF_Ldap::quote PHP Method

quote() public method

Quotes LDAP strings in accordance with the RFC 2254
public quote ( string $string ) : string
$string string
return string
    public function quote($string)
    {
        return str_replace(array('\\', ' ', '*', '(', ')'), array('\\5c', '\\20', '\\2a', '\\28', '\\29'), $string);
    }