note 116366 added to function.sqlsrv-fetch-array
| From: | S | Date: | Fri, 19 Dec 2014 23:35:43 +0000 |
| Subject: | note 116366 added to function.sqlsrv-fetch-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-201228@lists.php.net to get a copy of this message | ||
Note that using a foreach loop on an array built by sqlsrv_fetch_array without specifying either
SQLSRV_FETCH_NUMERIC or SQLSRV_FETCH_ASSOC will go through both the associative and numeric keys in
the array. This can be a problem if you're trying to write to a CSV file for example;
you'll end up with double data.
----
Server IP: 72.52.91.14
Probable Submitter: 192.182.153.86
----
Manual Page -- http://php.net/manual/en/function.sqlsrv-fetch-array.php
Edit -- https://master.php.net/note/edit/116366
Del: integrated -- https://master.php.net/note/delete/116366/integrated
Del: useless -- https://master.php.net/note/delete/116366/useless
Del: bad code -- https://master.php.net/note/delete/116366/bad+code
Del: spam -- https://master.php.net/note/delete/116366/spam
Del: non-english -- https://master.php.net/note/delete/116366/non-english
Del: in docs -- https://master.php.net/note/delete/116366/in+docs
Del: other reasons-- https://master.php.net/note/delete/116366
Reject -- https://master.php.net/note/reject/116366
Search -- https://master.php.net/manage/user-notes.php