HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

str_shuffle

Description

The str_shuffle of String for PHP randomly shuffles a string.

Syntax

str_shuffle ( string $str ) : string

Parameters

str

The input string.

Return

Returns the shuffled string.

Examples

1

<?

$str = 'abcdef';

$return = str_shuffle($str);

echo $return;
dfaceb