LDAP_ESCAPE(3) 1 LDAP_ESCAPE(3)
ldap_escape - Escape a string for use in an LDAP filter or DN
SYNOPSIS
string ldap_escape (string $value, [string $ignore], [int $flags])
DESCRIPTION
Escapes $value for use in the context implied by $flags.
PARAMETERS
o $value
- The value to escape.
o $ignore
- Characters to ignore when escaping.
o $flags
- The context the escaped string will be used in: LDAP_ESCAPE_FILTER for filters to be used with ldap_search(3), or LDAP_ESCAPE_DN
for DNs.
RETURN VALUES
Returns the escaped string.
PHP Documentation Group LDAP_ESCAPE(3)