ldap_escape

  • (PHP 5 >= 5.6.0, PHP 7)
  • Escape a string for use in an LDAP filter or DN