What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » General » General Chit Chat » Random Word [site]

Random Word [site]
Author: Message:
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
35 / Male / Flag
Joined: Oct 2004
RE: Random Word [site]
code:
<?php
$words = array('word1', 'word2', 'word3'); //Fill an array with the random code words

$randomword = $words[rand(0, count($words)-1)]; //Pick a random code word from the array

echo $randomword; //Output the random code word to the page
?>


EDIT: Only noticed the EDIT in Eddie's above post just now, but I'll leave this post here in case anyone needs it for reference or something :p

This post was edited on 03-26-2007 at 12:14 PM by Volv.
03-26-2007 12:13 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Random Word [site] - by Eddie on 03-26-2007 at 08:22 AM
RE: Random Word [site] - by the DtTvB on 03-26-2007 at 09:09 AM
RE: Random Word [site] - by Eddie on 03-26-2007 at 09:11 AM
RE: Random Word [site] - by the DtTvB on 03-26-2007 at 09:17 AM
RE: Random Word [site] - by Felu on 03-26-2007 at 09:18 AM
RE: Random Word [site] - by Eddie on 03-26-2007 at 10:00 AM
RE: Random Word [site] - by Volv on 03-26-2007 at 12:13 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On