Documentation

getString

string public static
\Bitrix\Main\Security\Random::getString(
 integer $length,
 boolean $caseSensitive = false
);

Static method returns arbitrary string and if possible, alphanumeric string.

Parameters

ParameterDescriptionVersion
$lengthResult string length.
$caseSensitiveGenerate case-sensitive arbitrary string (for example SoMeRandom1).

Example



© «Bitrix24», 2001-2024
Up