UNIX / Solaris 8 Software Dictionary 3S Info LegoRacers Other Crap 

       yPass Home > yPass Software > PHP Modules > LDAP Class > resetResult.html > resetResult()
LDAP
XML
DNS

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>";