digits.php
Table of Contents
Functions
- digits() : string
- Generates the 'digits:value' rule expression.
Functions
digits()
Generates the 'digits:value' rule expression.
digits(int $value) : string
The field under validation must be numeric and must have an exact length of value.
Parameters
- $value : int
-
The exact number of digits the field must have.
Return values
string —The compiled digits:<value> rule expression.