top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is use of func_num_args() function in PHP.

0 votes
406 views
What is use of func_num_args() function in PHP.
posted Jul 24, 2014 by Amanpreet Kaur

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

function func_num_args () used to get the number of arguments passed to the function .
e.g :
<?php function students() { $no_of_arguments = func_num_args(); echo "No Of Arguments = $no_of_arguments”; } student($name , $age ,$address); // function call ?>
OUTPUT : No Of Arguments = 3

answer Jul 28, 2014 by Karamjeet Singh
...