Is there a PhP function that can count the number of parameters passed to another function?
for example
function tobeCounted ("numberOne","numberTwo","numberThree")
{
//do something with the parameters
}
a function that will count the number of parameters passed to the function above then return three or the indexes of the parameters or parameters themseleves.
If you use
func_num_args()then you get the amount of arguments, rather thanfunc_get_argsthat gets you the array of arguments.