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



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

Answer / Rashmi Yadav

In PHP, you can get the number of passed arguments using the 'func_num_args()' function. Here is an example: nndefaultFunction($arg1) {necho func_num_args();}ndefaultFunction('Test'); // Output: 1

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is mvc in php?

1 Answers  


How can you execute php script from the command line?

1 Answers  


Difference between mysql_connect and mysql_pconnect in php?

2 Answers  


How to connect SMTP server in php. I want to edit that in mantiss bug tracking tool. If anyone worked on mantiss software or in php, please give answer . I need to modify that in mantiss software.

1 Answers   HCL, UHG,


Hello Friends,I am seeking for a job in php having 2yrs. exp.Please suggest any company openings.

1 Answers  


What is deffience betwwen get() , Post , Request()

3 Answers  


Shopping cart online validation i.e. how can we configure Paypal, etc.?

1 Answers   INDUS,


Without using forms and hidden variables, how to send variables from a PHP script to another URL using POST method?

2 Answers  


How can we find the number of rows in a result set using PHP?

4 Answers  


What are the different functions in sorting an array?

2 Answers  


Does facebook use php framework?

1 Answers  


What is artisan in php?

1 Answers  


Categories