trait RandomStringGeneratorTrait (View source)

Methods

string
binToHex(string $binaryData, int $length)

Converts binary data to hexadecimal of given length

Details

at line line 16
string binToHex(string $binaryData, int $length)

Converts binary data to hexadecimal of given length

Parameters

string $binaryData The binary data to convert to hex.
int $length The length of the string to return.

Return Value

string

Exceptions

RuntimeException Throws an exception when multibyte support is not enabled