How to find out the number of parameters passed into function?
Answer Posted / Sayed Mohd Nadeem
In PHP, you can use the built-in function func_num_args() inside a function to determine the number of arguments that have been passed. Here's an example: `function myFunction() { echo func_num_args(); }`
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers