-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* 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
- -- 

Nick Wilson

Tel:    +45 3325 0688
Fax:    +45 3325 0677
Web:    www.explodingnet.com



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE8VFSFHpvrrTa6L5oRAg7iAKCAvzPSf8E5LGXOF5AjYEhwJXmqrQCfVWYE
ycfLyu31AB+QDQmkcKaJKe0=
=pkfe
-----END PGP SIGNATURE-----

-- 
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