-
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
-
That script doesn't shuffle input, it just makes the text show reversed... Here is an example of a real shuffle script by my friend...
http://www.blobsandmore.com/jumble.php
-
I meant to make it say reverse. Sorry about that.