/ / $ds is a valid link identifier for a directory server $basedn = "o=My Company, c=US"; $justthese = array("ou"); $sr=ldap_list($ds, $basedn, "ou=*", $justthese); $info = ldap_get_entries($ds, $sr); for ($i=0; $i $info["count"]; $i++) echo $info[$i]["ou"][0];
참고: These optional parameters were added in 4.0.2: attrsonly, sizelimit, timelimit, deref.