Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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