I have a function that has several variables called $val1, $val2, ... , $val10.
In the function, I call another function that does work on each of the variables i.e.
printOp ($val1)
printOp ($val2)
...
printOp ($val10)
-------------------------------------
Is there any way to do this using a loop? i.e.
for ( $i = 0 to 10 )
printOp ( $val$i )
}