note 116366 deleted from function.sqlsrv-fetch-array by cmb

From: Date: Tue, 06 Nov 2018 17:40:30 +0000
Subject: note 116366 deleted from function.sqlsrv-fetch-array by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-209636@lists.php.net to get a copy of this message
Note Submitter: S ---- 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.

« previous php.notes (#209636) next »