public function isInRange($dateValue, $value)
    {
        $parts = array_map('trim', explode('-', $value, 2));

        return $dateValue >= $parts[0] && $dateValue <= $parts[1];
    }
public function isInRange($dateValue, $value)
    {
        $parts = array_map('trim', explode('-', $value, 2));

        return $dateValue >= $parts[0] && $dateValue <= $parts[1];
    }
public function isInRange ( $ dateValue , $ value ) { $ parts = array_map ( 'trim' , explode ( '-' , $ value , 2 ) ) ; return $ dateValue >= $ parts [ 0 ] && $ dateValue <= $ parts [ 1 ] ; }
Test if a value is within a range

@param string $dateValue Set date value
@param string $value     Value to test

@return bool
Test if a value is within a range