Organizational Research By

Surprising Reserch Topic

How do I find out the number of parameters passed into function using php?



asked Sep 13, 2013 in PHP by ashish singh
edited Sep 12, 2013
0 votes
29 views



Related Hot Questions

1 Answer

0 votes

How do I find out the number of parameters passed into function?


func_num_args — Returns the number of arguments passed to the function.


Example:


function test()
{
    $number_of_args = func_num_args();
    echo "Number of arguments: $number_of_args";
}


test ("a","b");
?>

answered Sep 13, 2013 by ashish singh
edited Sep 12, 2013

...