Re: array within an array

From: Date: Fri, 15 Mar 2002 13:22:37 +0000
Subject: Re: array within an array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88647@lists.php.net to get a copy of this message
On Fri, 15 Mar 2002, Caspar Kennerdale wrote: > I have an sql query which calls * rows from a table. > > Each row is an array of table field values. > > This is how I understand the heirachy > > $table_row_array[0] = $field_row_array[] > $table_row_array[1] = $field_row_array[] > $table_row_array[2] = $field_row_array[] > > Now $table_row_array is being drawn from the database via a while loop and > an $a++, thus I do not have a name for $field_row_array- > > I just know that the value of each in $table_row_array is an array. > > How can I access the values within $filed_row_array[]? > > I want to do something like > > $table_row_array[0 [1]]; (the second value from the array that is the first > of $table_row_array) $table_row_array[0][1]; > > I know this isnt the syntax > > Thanks in advance > > > > > > -- Jan Rademaker <janr@486.yi.org> http://www.ottobak.com

« previous php.general (#88647) next »