How to define a function with any number of arguments?
Answer / Jyoti Yadav
In PHP, you can create a function that accepts any number of arguments using the func_num_args() and func_get_arg() functions. For example: function variableFunction() { for ($i = 0; $i < func_num_args(); $i++) { $arg[$i] = func_get_arg($i); } // do something with $arg array }
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain which cryptographic extension provide generation and verification of digital signatures?
Is gender a dependent variable?
When to use inquire vs enquire?
Do you know what does $globals means?
Write a hello world program using variable?
Which will start a session?
What is serialization / object serialization ?
Write syntax to open a file in php?
What are the uses of implode() function?
How session works (internal processing of session) ?
3 Answers ASD Lab, IPSR Solutions,
how to track user logged out or not? when a user is idle?
Is server side a session?