public function compare($dn, $attribute, $value)
	{
		return @ldap_compare($this->resource, $dn, $attribute, $value);
	}
public function compare($dn, $attribute, $value)
	{
		return @ldap_compare($this->resource, $dn, $attribute, $value);
	}
public function compare ( $ dn , $ attribute , $ value ) { return @ ldap_compare ( $ this -> resource , $ dn , $ attribute , $ value ) ; }
Compare an entry and return a true or false result

@param   string  $dn         The DN which contains the attribute you want to compare
@param   string  $attribute  The attribute whose value you want to compare
@param   string  $value      The value you want to check against the LDAP attribute

@return  mixed  result of comparison (true, false, -1 on error)

@since   1.0
Compare an entry and return a true or false result