InterviewSolution
Saved Bookmarks
| 1. |
The function returning reference to array of row values is ______________(a) fetchrow_array()(b) fetchrow_arrayref()(c) fetch()(d) fetchrow_hashref()The question was posed to me in homework.My doubt stems from Putting Perl DBI to Work in chapter MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» RIGHT option is (B) fetchrow_arrayref() Easy explanation: ‘fetchrow_arrayref()’ RETURNS a reference to an array of row VALUES. The function ‘fetchrow_hashref()’ returns reference to HASH of row values. ‘fetch()’ is the same as fetchrow_arrayref(). |
|