|
sqlsrv_fetch_arrayReturns a row as an array Description
array sqlsrv_fetch_array
( resource
$stmt
[, int $fetchType
[, int $row
[, int $offset
]]] )Returns the next available row of data as an associative array, a numeric array, or both (the default). Parameters
Return Values
Returns an array on success, Examples
Example #1 Retrieving an associative array.
<?php
Example #2 Retrieving a numeric array.
<?php Notes
Not specifying the If more than one column is returned with the same name, the last column will take precedence. To avoid field name collisions, use aliases. If a column with no name is returned, the associative key for the array element will be an empty string (""). See Also
|