Skip to content

How to check if my number within the range of the IntegerRange object #23

Open
@4n70w4

Description

@4n70w4

Hi! Thanks for package.

For example I have code:

$range = new IntegerRange('1', 1_000, '[', ']');

and I want to get a true or false answer, whether my value is in this range like this:

$range->check(10); \\ true
$range->check(10000); \\ false

but I did not find such a method to do it. It will be very helpful!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions