ldap_errno

PHP 4, PHP 5, PHP 7, PHP 8
ldap_errno - Return the LDAP error number of the last LDAP command
Manual
Code Examples

Example #1 Generating and catching an error

sufficiently or prefix your LDAP commands with @ (at) characters to suppress warning output, the errors generated will also show up in your HTML output.

PHP Version: