Re: Re: tow dimenshional arrays

From: Date: Sun, 22 Feb 2004 01:07:37 +0000
Subject: Re: Re: tow dimenshional arrays
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-178461@lists.php.net to get a copy of this message
Hello Manuel, Sunday, February 22, 2004, 5:47:02 AM, you wrote: MVA> As far as I know, there is no such a function. Maybe you should use a MVA> different approach. MVA> Manu. MVA> "Joe-At" <riej@yahoo.com> wrote in message MVA> news:20040221145259.1539.qmail@pb1.pair.com... >> Hallo, >> 1) I want to work with the rows und columns of a tow dimensional >> array[i][j]. With array[i] I get the i'th row. But how can I get the j'th >> column? >> 2) Is there any command to transpose a two dimensional array? >> Thanks for help 1. $array_j = $array[$i] ; count($array_j) ; 2. foreach($array as $sub_array){ foreach($subarray as $key=>$value) echo $key.'=='.$value ; } cmiiw -- Best regards, adwinwijaya mailto:adwinwijaya@yahoo.com.au

« previous php.general (#178461) next »