note 75190 rejected from function.PDOStatement-fetchAll by nlopess
| From: | nlopess@php.net | Date: | Sun, 20 May 2007 13:47:20 +0000 |
| Subject: | note 75190 rejected from function.PDOStatement-fetchAll by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-126743@lists.php.net to get a copy of this message | ||
Note Submitter: alexander dot krause at erazor-zone dot de
----
Is there a way to get a result like:
array(3) {
["apple"]=> string(5) "green",
["pear"]=> string(5) "green",
["watermelon"]=> string(5) "green"
}
I've a table with 2 columns named 'name' and 'value' and i'd like to
avoid using another loop to generate my array.