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 funcgetargs 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
