Diviner

Function ldap_sprintf()

Definedsrc/xsprintf/ldapsprintf.php:15

ldap_sprintf($pattern)

parameterswild$pattern
returnwild

Format an LDAP string. This function behaves like sprintf(), except that all the normal conversions (like %s) will be properly escaped, and additional conversions are supported:

%S (Search Filter)
  Escapes text for use in a search filter.

%Q (Raw Query)
  Inserts raw, unescaped text. DANGEROUS!