I thought about the possibility of accessing all the variables that are passed to the function and combining them into an array. (Without passing variables to the array from the start)
Pseudo Code:
// Call function
newFunction('one', 'two', 'three' ) ;// All values are interpreted as a one rray in some way
// Function layout
newFunction( ) {
// $functionvariables = array( All passed variables)
foreach ($functionvariable as $k => $v) {
// Do stuff
}
}
source
share