Even better!
mt

On Sunday 27 January 2002 03:27 pm, you wrote:
> * and then Tauntz blurted....
>
> > If I have n variables:
> > $nr1 = "some text";
> > $nr2 = "some other text"
> > $nr3....
> > ....
> > and I want to print the text "randomly" (like if I enter the page.. it
> > displays $nr1... next time it displays $nr 5.. etc) how can I achieve it
> > ?
>
> Pop them all into an array and use array_rand()
> See manual for details.
>
> HTH

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to