resetResult()

    boolean resetResult()
The resetResult() function is used to reset the "result index" returned from a search back to the first entry.

function.

Example:

$ldap = new LDAP();
$ldap->search("(objectClass=person)");

while($attrs = $ldap->fetch()) // Get all the returned attributes
	echo $attrs["cn"] . "<br>";

$ldap->resetResult();

while($attrs = $ldap->fetch()) // Get all the returned attributes again
	echo $attrs["cn"] . "<br>";