我一直在阅读 mysql_fetch_* 方法。这是我从 PHP.org 网站上学到的。
mysql_fetch_array — Fetch a result row as an associative array, a numeric array, or both
mysql_fetch_assoc — Fetch a result row as an associative array
mysql_fetch_object — Fetch a result row as an object
mysql_fetch_row — Get a result row as an enumerated array
看起来 mysql_fetch_array 包含所有存在于
mysql_fetch_assoc,mysql_fetch_object,mysql_fetch_row
. 因为mysql_fetch_assoc
只包含关联数组,
mysql_fetch_row
包含数字数组中的数据。
mysql_fetch_object
还返回关联数组。
请告诉我我的理解是正确还是错误。