Multiple php scripts with examples questions and answer here.
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment