This is the source code for 8ball.php by Jonas Ljungkvist.Please notice: You dont need to edit anything.
Instructions: Type a question in the text-field and press the button (or enter button). If the answer turns out blue then the answer is possitive. If the answer turns out red then the answer is negative. If the answer turns out black then Im not sure what to answer... Ask the magic 8ball a question! if (isset($requiredquestion)) { $answers = array( "Yes", "No", "Of Course", "Never", "Maybe", "Theres a Chance", "What do you think I am, psychic?", "Sometimes", "Im quit sure about that!", "Thats probably true", "Hell no..", "Dont even think about it....", "Maby , maby not", "You may count on it", "The chanse is quit as big as seeing Jay Leno in a g-string", "I would not even concider it..", "I must say yes...", "Damnd right ...", "Sure thing..", "Hahah your kidding right?", "If you're lucky"); srand((double) microtime() * 1000000); $count = count($answers); echo "You asked: "; echo $requiredquestion; echo "and the answer is: " . $answers[rand(0,$count)]; } ?> Created by Jonas Ljungkvist - Source is aviable here.