Call us Toll-Free:
1-800-218-1525
Live ChatEmail us

 Sponsors

Reversing Text by MBK

Code Wizard, 12-30-2006

This script will reverse the text you give it.
reversed: .ti evig uoy txet eht esrever lliw tpircs siht
It isn't very useful, it's just funny.
Try it out :)

<?

//This script will reverse the text you give it.
//reversed: .ti evig uoy txet eht esrever lliw tpircs siht
//It isn't very useful, it's just funny.
//Try it out :)
//

if (isset($text)) {
$text = strtolower($text);


echo "
<script>
var text = "$text";
texts = text.split("")
var newtext = texts[0] + "*";
for (i=1; i<(text.length);i++) {
newtext += texts[i];
newtext += "*";
}
location.href = "reverse.php?bloe=" + newtext;
</script>";

}

if (isset($bloe)) {
$letters = explode("*", $bloe);

for ($i=count($letters);$i>-1;$i--) {
echo $letters[$i];
}

}

echo "<br><br><br><br><br>";
echo "<center>Enter the text you wish to be reversed<br><br><br>
<form method='post' action='reverse.php'>
<input type='text' name='text'>
<input type='submit' value='Submit'></center></form>";


?>
Enjoyed this post?

Subscribe Now to receive new posts via Email as soon as they come out.

 Comments
Post your comments












Note: No link spamming! If your message contains link/s, it will NOT be published on the site before manually approved by one of our moderators.



About Us  |  Contact us  |  Privacy Policy  |  Terms & Conditions