PHP str_shuffle() Function


The str_shuffle() function is used to randomly shuffles all the characters of a string.

Syntax
str_shuffle(string)
Parameters
  • string - (required) Specifies the string to shuffle.
Example
<?php
    echo str_shuffle("Good Morning");
?>

Output

igMorn nodGo

Note : This function returns randomly data so you can refresh your page then see.

Prev Next