I'm relatively new to programming, have been working a lot in javascript, and now trying to learn php. The title basically says it. How many parameters can I pass in a user defined function?
I've noticed standard functions tend to accept different numbers, so I was wondering if I could potentially pass infinite numbers of parameters in a function call, so long as the function does something with each.
for example:
Call the function:
Myfunction(1,4,3,2,6)
The function being called:
function Myfunction(numOfApples, numOfBananas, numOfPears, numOfOranges, numOfRasberries){'do something with each of these values'}
I'm asking for general understanding, I'm not trying to do anything specific, so the fruit list thing is just an example of passing parameters that represent different things.