isObjectClass()
boolean isObjectClass(string objectClassName)
This function will return whether or not objectClassName is
a valid objectClass defined in the slapd.oc.conf file.
Example:
$ldap = new LDAP();
if ($ldap->isObjectClass("top"))
echo "objectClass 'top' is defined";
else
echo "objectClass 'top' is not defined";