Re: a quick question..
| From: | Miles Thompson | Date: | Sun, 27 Jan 2002 19:29:38 +0000 |
| Subject: | Re: a quick question.. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-82307@lists.php.net to get a copy of this message | ||
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