getStringByAlphabet
string public static \Bitrix\Main\Security\Random::getStringByAlphabet( integer $length, integer $alphabet );
Static method returns arbitrary string (if possible) in ASCII for specified alphabet mask.
Parameters
Parameter | Description | Version |
---|---|---|
$length | Result string length. | |
$alphabet | Alphabet mask (for example: Random::ALPHABET_NUM | Random::ALPHABET_ALPHALOWER ). |
Example
© «Bitrix24», 2001-2024
Up