RE: [PHP] array within an array (one more query)
| From: | Niklas Lampén | Date: | Fri, 15 Mar 2002 13:42:03 +0000 |
| Subject: | RE: [PHP] array within an array (one more query) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88651@lists.php.net to get a copy of this message | ||
Yes.
Niklas
-----Original Message-----
From: Caspar Kennerdale [mailto:caspar@thetuckshop.com]
Sent: 15. maaliskuuta 2002 15:35
To: Php-General
Subject: RE: [PHP] array within an array (one more query)
can you therefore have $array[0][9][2][3]
if you had an array within an array within an array within an array.
(not sure i'd want to, but you never know)
$array[0][1] is how you access multi-dimensional arrays.
Niklas
-----Original Message-----
From: Caspar Kennerdale [mailto:caspar@thetuckshop.com]
Sent: 15. maaliskuuta 2002 15:18
To: php-general@lists.php.net
Subject: [PHP] array within an array
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)
I know this isnt the syntax
Thanks in advance
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php