How to count number of variable parameter in a function – PHP

Sometime while working with function in php, we want to know that how many argument is passing in a function or a variable parameter. For solving this situation we need to count the variable parameter by this function func_num_args() – it will return the number of argument pass to this function. Example:- func_get_args — This […]