Easy Tutorial
❮ Func String Count Chars Func Array Compact ❯

PHP str_shuffle() Function

PHP String Reference Manual

Example

Randomly shuffles all characters in a string:


Definition and Usage

The str_shuffle() function randomly shuffles all characters in a string.


Syntax

Parameter Description
string Required. Specifies the string to shuffle.

Technical Details

Return Value: Returns the shuffled string.
PHP Version: 4.3.0+
--- ---
❮ Func String Count Chars Func Array Compact ❯