Categories
How to set a limit?
How to make a restriction so that when entering you can enter a number from 1-31, but if the number 0 is entered, then an error was displayed
Answer the question
In order to leave comments, you need to log in
$year = $intval($year); return $year > 0 && $year <=31;
Assert::assert($year, 'year')->int()->between(1, 31);
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question