getObjectClasses()

    array getObjectClasses()
This function will return an array of the objectClasses you have defined in your slapd.oc.conf file.

Example:

$ldap = new LDAP();
$ocs = $ldap->getObjectClasses();
for ($ctr = 0; $ctr < count($ocs); $ctr++)
{
	echo $ocs[$ctr]
}