top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

What is use of func_num_args() function in PHP.

0 votes
75 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...