Escapes the given VALUES according to RFC 2254 so that they can be safely used in LDAP filters.
Any control characters with an ACII code < 32 as well as the characters with special meaning in
LDAP filters "*", "(", ")", and "\" (the backslash) are converted into the representation of a
backslash followed by two hex digits representing the hexadecimal value of the character.
public static escape_filter_value ( array $values = [], $singleValue = true ) : array | ||
$values | array | Array of values to escape |
return | array | Array $values, but escaped |