A very simple tutorial to get you a better understanding of how to use PHP to shuffle words.

text.htm
Code:
<html>
<head>
<title>Shuffle</title>
</head>
<body>
<form method="post" action="shuffle.php">
<textarea name="words" rows="10" cols="20"></textarea><br>
<input type="submit" value="Reverse">
</form>
</body>
</html>
shuffle.php
Code:
<?php
/* Shuffle.php */

global $words;
$new_word = strrev($words);

echo "$new_word";

?>
Example Here

Brought To You By PHPMini