note 120231 deleted from pdostatement.fetchcolumn by cmb
| From: | cmb@php.net | Date: | Mon, 28 Nov 2016 18:56:24 +0000 |
| Subject: | note 120231 deleted from pdostatement.fetchcolumn by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207710@lists.php.net to get a copy of this message | ||
Note Submitter: eric at eric dot com
----
@gaiusgracchus33
You read that right, and it is the correct behavior of the fetchColumn method. If you call it
you'll get the value of only 1 column in the current row, after that the next call to any of
the 4 PDO fetch methods (fetch, fetchAll, fetchColumn, fetchObject) will have advanced onto the next
row in the result set and will be fetching data from that row instead.