In php, how would you create a function that could take an unlimited number of parameters: myFunc($p1, $p2, $p3, $p4, $p5...);
My next question is: how would you pass them into another function similar to
function myFunc($params){ anotherFunc($params); }
but anotherFunc will receive them as if it were called using anotherFunc($p1, $p2, $p3, $p4, $p5...)
function php arguments
Hailwood
source share