Definition
The str_shuffle() function randomly shuffles all the characters of a string.
Syntax
str_shuffle(string)
Parameters
| Parameter | Description |
|---|---|
string |
Required. Specifies the string to shuffle. |
Example
<?php
echo str_shuffle("Welcome to PHP");