str_shuffle

str_shuffle

(PHP 4 >= 4.3.0, PHP 5, PHP 7)

str_shuffleRandomly shuffles a string

Description

string str_shuffle ( string $str )

str_shuffle() shuffles a string. One permutation of all possible is created.

Caution

This function does not generate cryptographically secure values, and should not be used for cryptographic purposes. If you need a cryptographically secure value, consider using random_int(), 登录查看完整内容