Skip to content

Instantly share code, notes, and snippets.

@muddylemon
Created July 19, 2012 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muddylemon/3146475 to your computer and use it in GitHub Desktop.
Save muddylemon/3146475 to your computer and use it in GitHub Desktop.
Letter Scrambler
<?php
function scramble($words) {
$letter_array = str_split($words);
shuffle($letter_array);
return implode($letter_array);
}
// usage
echo scramble("Words and stuff");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment