Home  >  Article  >  Backend Development  >  Detailed explanation of the difference between fetchAll() and mysql_fetch_array()_PHP tutorial

Detailed explanation of the difference between fetchAll() and mysql_fetch_array()_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:09:041029browse

The same query statement:
fetchAll():

Copy code The code is as follows:

array(1) {                                                             [0]= > string(2) "15"
["lot_sellid"]=> string(20) "00000000000000003877"
[1]=> string(20) "00000000 000000003877"                                                                    ]=> String(2) "D8" 🎜>

mysql_fetch_array():





Copy code

The code is as follows:
array(6) {
[0]=> string(2) "15"
["id"]=> string(2) "15"
string(20) "0000000000000003877" ["lot_sellid"]=> string(20) "00000000000000003877"                                                                                          ; string(2) "D8" }




http://www.bkjia.com/PHPjc/327334.html

www.bkjia.com

true
http: //www.bkjia.com/PHPjc/327334.html
TechArticle

The same query statement: fetchAll(): Copy the code as follows: array(1) { [0]= array (6) { ["id"]= string(2) "15" [0]= string(2) "15" ["lot_sellid"]= string(20) "00000000000000003...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn