1.

Which in-built function will add a value to the end of an array?(a) array_unshift()(b) into_array()(c) inend_array()(d) array_push()The question was asked in semester exam.This intriguing question comes from Arrays-1 topic in section Arrays and Functions of PHP

Answer»

Correct CHOICE is (d) array_push()

Explanation: array_push ADDS a value to the end of an array, RETURNING the total count of ELEMENTS in the array after the new value has been ADDED.



Discussion

No Comment Found

Related InterviewSolutions