Using PHP i want to make a Rand() for words.....?

  • Thread starter Thread starter skippy_owen
  • Start date Start date
S

skippy_owen

Guest
I basically want a Rand(),i know how to make number rand() for example rand(10,100); but i want 1 to say words,there are 7 words,and i want it in the code like this

$randword=rand(word1,word2,word3,word4,word5,word5,word6,word7);

but when i used this (with the words i wanted) it didnt print/echo the word =(
 
Back
Top