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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to