WHAT IS THE SYNTAX OF THE STR_SHUFFLE() FUNCTION IN PHP?
str_shuffle(string)
Parameter | Description |
---|---|
string | Required. Specifies the string to shuffle |
EXAMPLES OF THE STR_SHUFFLE() FUNCTION
Example 1. In this example, we randomly shuffle all characters of a string.
<?php
echo str_shuffle("Hello World");
?>