Sunday, March 18, 2012

How to suffle a string in php?


//Php array suffle example


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


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

No comments:

Post a Comment