Warning: file_put_contents(): Only -1 of 52 bytes written, possibly out of free disk space in /var/www/html/index.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 25
str_rot13 str_split Strings PHP Manual str_shuffle (PHP 4 >= 4.3.0, 5) — Randomly shuffles a string Description ( $str ) str_shuffle() string. One permutation of all possible is created. Para...
Forum und email

str_shuffle

(PHP 4 >= 4.3.0, PHP 5)

str_shuffle — Randomly shuffles a string

Description

string str_shuffle ( string $str )

str_shuffle() shuffles a string. One permutation of all possible is created.

Parameters

str

The input string.

Return values

Returns the shuffled string.

Examples

Example#1 str_shuffle() example

<?php
$str 
'abcdef';
$shuffled str_shuffle($str);

// This will echo something like: bfdaec
echo $shuffled;
?>

See Also