Escape any special characters for LDAP to their hexadecimal representation.
public static escapeValue ( mixed $value, null | string $ignore = null, null | integer $flags = null ) : string | ||
$value | mixed | The value to escape. |
$ignore | null | string | The characters to ignore. |
$flags | null | integer | The context for the escaped string. LDAP_ESCAPE_FILTER or LDAP_ESCAPE_DN. |
return | string | The escaped value. |