Re: Random values
| From: | Anguz | Date: | Wed, 28 Apr 2004 22:44:28 +0000 |
| Subject: | Re: Random values | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-184906@lists.php.net to get a copy of this message | ||
Phpu wrote:
If i have an array (ex: models(value1, value2, value 3....) is there any command to pick up a random value ? ThanksI do it like this: $arr[array_rand($arr)] Anguz