public static function comparison($input, $check, $mode) {
        switch (mb_strtolower($mode)) {
            case 'greater':
            case 'gt':
            case '>':
                return ($input > $check);
            break;
            case 'greaterorequal':
            case 'gte':
            case '>=':
                return ($input >= $check);
            break;
            case 'less':
            case 'lt':
            case '<':
                return ($input < $check);
            break;
            case 'lessorequal':
            case 'lte':
            case '<=':
                return ($input <= $check);
            break;
            case 'equal':
            case 'eq':
            case '==':
            case '=':
                return ($input == $check);
            break;
            case 'notequal':
            case 'neq':
            case 'ne':
            case '!=':
                return ($input != $check);
            break;
            default:
                throw new InvalidArgumentException(sprintf('Unsupported mode %s for %s', $mode, __METHOD__));
            break;
        }
    }
public static function comparison($input, $check, $mode) {
        switch (mb_strtolower($mode)) {
            case 'greater':
            case 'gt':
            case '>':
                return ($input > $check);
            break;
            case 'greaterorequal':
            case 'gte':
            case '>=':
                return ($input >= $check);
            break;
            case 'less':
            case 'lt':
            case '<':
                return ($input < $check);
            break;
            case 'lessorequal':
            case 'lte':
            case '<=':
                return ($input <= $check);
            break;
            case 'equal':
            case 'eq':
            case '==':
            case '=':
                return ($input == $check);
            break;
            case 'notequal':
            case 'neq':
            case 'ne':
            case '!=':
                return ($input != $check);
            break;
            default:
                throw new InvalidArgumentException(sprintf('Unsupported mode %s for %s', $mode, __METHOD__));
            break;
        }
    }
public static function comparison ( $ input , $ check , $ mode ) { switch ( mb_strtolower ( $ mode ) ) { case 'greater' : case 'gt' : case '>' : return ( $ input > $ check ) ; break ; case 'greaterorequal' : case 'gte' : case '>=' : return ( $ input >= $ check ) ; break ; case 'less' : case 'lt' : case '<' : return ( $ input < $ check ) ; break ; case 'lessorequal' : case 'lte' : case '<=' : return ( $ input <= $ check ) ; break ; case 'equal' : case 'eq' : case '==' : case '=' : return ( $ input == $ check ) ; break ; case 'notequal' : case 'neq' : case 'ne' : case '!=' : return ( $ input != $ check ) ; break ; default : throw new InvalidArgumentException ( sprintf ( 'Unsupported mode %s for %s' , $ mode , __METHOD__ ) ) ; break ; } }
Compare two numerical values.

@param int $input
@param int $check
@param string $mode
@return bool
@throws \Titon\Utility\Exception\InvalidArgumentException
Compare two numerical values .