public static function validateMatches($value, $compareField, $instance)
    {
        if (isset($instance->_fields[$compareField])) {
            return ($value == $instance->_fields[$compareField]['value']);
        }
    }
public static function validateMatches($value, $compareField, $instance)
    {
        if (isset($instance->_fields[$compareField])) {
            return ($value == $instance->_fields[$compareField]['value']);
        }
    }
public static function validateMatches ( $ value , $ compareField , $ instance ) { if ( isset ( $ instance -> _fields [ $ compareField ] ) ) { return ( $ value == $ instance -> _fields [ $ compareField ] [ 'value' ] ) ; } }
Validates that the input value matches another input parameter

@param mixed $value the value of the input parameter
@param mixed $compareField the name of the input parameter to compare to
@param mixed $instance the instance of the Input object
@return mixed
Validates that the input value matches another input parameter