So I understand array_merge() combines multiple arrays. I am just really getting confused on the parameters behind the scenes. So how many parameters can it really receive?
I am expecting the answer to be "technically unlimited" (even though I know something would be wrong if you needed to do that).
So following on that idea then, how does the function work correctly? It does not know the parameters ahead of time. Wouldn't the function have to have been designed like so to work:
function array_merge($array, $array1=[], $array2=[], and so on...)
How can we just keep adding parameters?
Note: I have been taking a class that has challenged us to really thing about how functions work, and that is why I am being so specific about how it works.