GFXVoid Graphic Design Forum

Remove Text Formatting
Loading...

» Online Users: 10,005

0 members and 10,005 guests
No Members online

» Site Navigation

 > FAQ

» Stats

Members: 35,442
Threads: 103,075
Posts: 826,688
Top Poster: cc.RadillacVIII (7,429)
Welcome to our newest member, Lekelindids
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2004
    Location
    Buffalo Grove, Illinois
    Posts
    350

    Default

    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

  2. #2
    Join Date
    Feb 2005
    Posts
    3

    Default

    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

  3. #3
    Join Date
    Dec 2004
    Location
    Buffalo Grove, Illinois
    Posts
    350

    Default

    I meant to make it say reverse. Sorry about that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBadvanced CMPS v4.1.1