|
Random\Randomizer::shuffleBytesGet a byte-wise permutation of a string Description
public string Random\Randomizer::shuffleBytes(string
$bytes )
Returns a uniformly selected permutation of the input
Each possible permutation of the input Parameters
Return Values
A permutation of the bytes of Errors/Exceptions
ExamplesExample #1 Random\Randomizer::shuffleBytes example
The above example will output something similar to: « ga rHs!PPiet» Example #2 Byte-wise shuffling breaks Unicode characters
The above example will output something similar to: Original: 🍎, 🥝, 🍌, 🍑, 🍇 Shuffled: «� ��,�����🍟,� �� �, �,��» Shuffled Bytes: 87208e912c8d9fa5f0f0f09f8d9f2cf09f208c9d20f02c209f2c8d8d |