rapidash
rapidash

Reputation: 278

Question about mysql_fetch_array?

How does mysql_fetch_array work?

Is it a stack/queue?

Upvotes: 1

Views: 177

Answers (1)

Phil
Phil

Reputation: 164956

It fetches the current row from the open cursor and hydrates it into an array using one or both of two methods:

  • MYSQL_ASSOC - column names as array key
  • MYSQL_NUM - column position as array index

See http://en.wikipedia.org/wiki/Cursor_(databases)

Upvotes: 3

Related Questions