ctype_digit

Supported Versions: PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
Check for numeric character(s)
<?php ctype_digit(mixed $text): bool
<?php     public function toBeDigits(string $message = ''): self

    {

        Assert::assertTrue(ctype_digit((string) $this->value), $message);



        return $this;

    }