randomAlphaNumeric.php
Table of Contents
Functions
- randomAlphaNumeric() : string
- Returns a random alphanumeric string of the given length.
Functions
randomAlphaNumeric()
Returns a random alphanumeric string of the given length.
randomAlphaNumeric(int $length) : string
A small building block shared by the string-producing maskers (maskEmail(), maskRandomString(), maskRandom()). It is not meant to be cryptographically reversible — its only purpose is to replace a value with anonymized, readable characters.
Parameters
- $length : int
-
The desired length (clamped to a minimum of 1).