Question: How can you define a function that allows a variable number of parameters in PHP ? How can you define a function that allows a

How can you define a function that allows a variable number of parameters in PHP?
How can you define a function that allows a variable number of parameters in PHP?
You can only have a set number of arguments in PHP functions.
Leave the parameter list (in parenthesis) blank and use func_get_args() within the function to get the arguments.
You can use the special @_ array inside of the function.
You can use the $_FUNCARGS superglobal

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!