1.

Which function returns an array of row values?(a) fetchrow_array()(b) fetchrow_arrayref()(c) fetch()(d) fetchrow_hashref()The question was asked by my college director while I was bunking the class.My question is based upon Operators in portion Data Type Reference, Operators and Functions of MySQL

Answer»

Right choice is (a) fetchrow_array()

BEST explanation: The FUNCTION ‘fetchrow_array()’ RETURNS an array 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