getDigit()
getDigit(boolean $includeZero = true) : string
Generate a random digit character.
Parameters
boolean | $includeZero | Flag for including the zero digit (default => true). |
Throws
- \Exception
Validation errors.
Returns
string —Randomly generated digit character.