int ldap_errno ( resource $link_identifier )
Returns the standardized error number returned by the last LDAP command. This number can be converted into a textual error message using ldap_err2str().
Return the LDAP error number of the last LDAP command for this link.