[thelist] Q on PHP array manipulations...

phpWalter phpWalter at torres.ws
Fri Jul 9 14:12:38 CDT 2004

> -----Original Message-----
> From: thelist-bounces at lists.evolt.org 
> [mailto:thelist-bounces at lists.evolt.org] On Behalf Of sbeam
> Sent: Friday, July 09, 2004 6:53 AM
> To: thelist at lists.evolt.org
> Subject: Re: [thelist] Q on PHP array manipulations...
> > On Friday 09 July 2004 03:28 am, jsWalter wrote:
> > Does anyone here know if PHP has a built-in function to "flip" an 
> > array?
> >
> http://us3.php.net/array_flip

Yea, I know about that one. Looked at, not quite.

> > Meaning, rows become columns and columns become rows.
> arrays don't have columns or rows. They have keys and values.

Yea, I realized that after sent my message.

> So I'm not sure what you meant by that, but in any case if
> array_flip() isn't what you need then there is definitely
> another way to do it.

Right, the other way was to loop through the array elements and pull out
the sub-array elements.

I was just hoping for a better way.


More information about the thelist mailing list