DB::getAssoc
| From: | Dan Allen | Date: | Sat, 13 Jul 2002 00:58:59 +0000 |
| Subject: | DB::getAssoc | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-7698@lists.php.net to get a copy of this message | ||
Would it be possible to have DB::getAssoc return the following
structure?
array(
[record1] => array(
[column1] => data,
[column2] => data
)
[record2] => array(
[column1] => data,
[column2] => data
)
)
instead of just
array(
[record1] => array(
[0] => data,
[1] => data
)
[record2] => array(
[0] => data,
[1] => data
)
)
Notice how the nested data is also an associative array with the
field names as the keys.
Dan
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Daniel Allen, <dan@mojavelinux.com>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Windows: where do you want your data to disappear to today?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -