note 103487 deleted from function.mysql-fetch-array by levim
| From: | levim@php.net | Date: | Thu, 05 Dec 2013 03:34:32 +0000 |
| Subject: | note 103487 deleted from function.mysql-fetch-array by levim | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-197749@lists.php.net to get a copy of this message | ||
Note Submitter: luke at lmbd dot co dot uk
----
That does actually return what you'd expect when using MYSQL_BOTH, because you get two sets of
results within the array, which are returned when looped through; You get the associative values,
which are field named paired with a value, and then you get the index position and it's
associated value (minus the field name).
Generally speaking you'd only want to have to use fetch_assoc anyway, since you are more likely
to want to reference the information by field name, unless you are absolutely certain of the order
in which the fields will be returned to you from the database.