Documentation

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

ParameterDescriptionVersion
$lengthResult string length.
$alphabetAlphabet mask (for example: Random::ALPHABET_NUM | Random::ALPHABET_ALPHALOWER).

Example



© «Bitrix24», 2001-2022
Up