ldap_free_result

bool ldap_free_result(resource connectionID) 

Frees memory used in a query.

Returns:

TRUE on success; FALSE on failure

Description:

ldap_free_result() frees the memory associated with performing an LDAP query. This need only be done if you’re concerned with memory usage inside your script, as the result memory is freed when the script finishes.

Availability:

UNIX/Linux, Windows

Version:

3+, 4+

Example:

Free results
ldap_free_result ($ldapconn); 

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.