Difference between mysql_fetch_array and mysql_fetch_row?

前端 未结 10 1386
野的像风
野的像风 2020-12-02 08:36

This is a simple question for PHP users. The reason I couldn\'t get the the exact difference between mysql_fetch_array() and mysql_fetch_row() in P

10条回答
  •  半阙折子戏
    2020-12-02 09:21

    As the manual says: mysql_fetch_array() can return an associative array depending on defaults and its second parameter (MYSQL_ASSOC, MYSQL_NUM, or MYSQL_BOTH).

    While mysql_fetch_row() always returns an indexed array.

提交回复
热议问题