1.

Which function returns a reference to hash of row values?(a) fetchrow_array()(b) fetchrow_arrayref()(c) fetch()(d) fetchrow_hashref()I had been asked this question in final exam.Question is taken from Operators topic in section Data Type Reference, Operators and Functions of MySQL

Answer»

The CORRECT answer is (d) fetchrow_hashref()

Easiest EXPLANATION: The FUNCTION ‘fetchrow_hashref()’ returns REFERENCE to hash of row values. ‘fetchrow_arrayref()’ returns a reference to an array of row values. ‘fetch()’ is the same as fetchrow_arrayref().



Discussion

No Comment Found

Related InterviewSolutions