You are here : phpstringstr_shuffle

str_shuffle() - string


Parameters :
  • str - The input string.

  • Syntax

    string str_shuffle
        ( string $str
       )


    Example

    <?php$str = 'abcdef';$shuffled = str_shuffle($str);// This will echo something like: bfdaececho $shuffled;?>


    Output / Return Value


    Limitations


    Alternatives / See Also


    Reference