fetchAll()与mysql_fetch_array()的区别详解

前端之家收集整理的这篇文章主要介绍了fetchAll()与mysql_fetch_array()的区别详解前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

同一个查询语句:

<FONT style="COLOR: #ff0000">fetchAll():

<div class="codetitle"><a style="CURSOR: pointer" data="66718" class="copybut" id="copybut66718" onclick="doCopy('code66718')"> 代码如下:
<div class="codebody" id="code66718">
array(1) {
[0]=> array(6) {
["id"]=> string(2) "15"
[0]=> string(2) "15"
["lot_sellid"]=> string(20) "00000000000000003877"
[1]=> string(20) "00000000000000003877"
["lotteryid"]=> string(2) "D8"
[2]=> string(2) "D8"
}
}

<FONT style="COLOR: #ff0000">MysqL_fetch_array():

<div class="codetitle"><a style="CURSOR: pointer" data="58432" class="copybut" id="copybut58432" onclick="doCopy('code58432')"> 代码如下:
<div class="codebody" id="code58432">
array(6) {
[0]=> string(2) "15"
["id"]=> string(2) "15"
[1]=> string(20) "00000000000000003877"
["lot_sellid"]=> string(20) "00000000000000003877"
[2]=> string(2) "D8"
["lotteryid"]=> string(2) "D8"
}

原文链接:https://www.f2er.com/php/26464.html

猜你在找的PHP相关文章