Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP str_shuffle — Randomly shuffles a string

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

// This will echo something like: bfdaec
echo $shuffled;
?>
 
PREVIOUS NEXT
Tagged: #PHP #Randomly #shuffles #string
ADD COMMENT
Topic
Name
1+8 =