How can I write a function in php with an unknown number of parameters, e.g.
function echoData (parameter1, parameter2,) {
But when you call a function that you can use:
echoData('hello', 'hello2', 'hello3', 'hello'4);
So more parameters can be sent, since the number of parameters will be unknown.
source share