Re: Explode, Arrays and Checkboxes
| From: | Curt Zirzow | Date: | Thu, 09 Sep 2004 04:35:10 +0000 |
| Subject: | Re: Explode, Arrays and Checkboxes | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196195@lists.php.net to get a copy of this message | ||
* Thus wrote zareef ahmed:
> HI,
>
> >
> > I have two variables:
> >
> > $x = "2,10,34"
> > $y = "28,15,16"
> >
> > I need to explode them both, so that the values of
> > $x are they keys, and the values of $y are the
> > values. Is that possible?
>
> yes see array_combine function
>
> http://www.php.net/array_combine
heh.. there are so many array_* functions i forgot about that one.
Sometimes that array documentation can be so overwhelming.
Curt
--
The above comments may offend you. flame at will.