1.

Which of the following PHP functions accepts any number of parameters?(a) func_get_argv()(b) func_get_args()(c) get_argv()(d) get_argc()This question was addressed to me in an interview for internship.This key question is from In-Built Functions in PHP topic in portion Arrays and Functions of PHP

Answer»

The correct ANSWER is (b) func_get_args()

Best explanation: func_get_args() returns an array of arguments PROVIDED. One can USE func_get_args() inside the function to parse any NUMBER of passed parameters. Here is an example:



Discussion

No Comment Found

Related InterviewSolutions