Re: re-keying an array
| From: | Curt Zirzow | Date: | Fri, 30 Apr 2004 03:50:13 +0000 |
| Subject: | Re: re-keying an array | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-184999@lists.php.net to get a copy of this message | ||
* Thus wrote John W. Holmes (holmes072000@charter.net):
> Justin French wrote:
> >On 30/04/2004, at 12:06 PM, John W. Holmes wrote:
> >
> >
> >Like I said, always happy to see something in a few less lines :)
>
> If I'm following what you want to do correctly:
>
> for($i=0;$i<2;$i++)
> {
> $key = array_rand($filenames);
heh.. there are almost to many array_* functions :)
Curt
--
"I used to think I was indecisive, but now I'm not so sure."