I want to be able to call gen_loops() for multiple number of array elements.
I still do not understand what problem you are having?
If you want to call it with 3 arrays: call it with 3.
If you want to call it with 4 arrays; call it with 4.
If you ....
Instead of repeating the same thing over and over; try showing us what you are trying to do that isn't working.
Ie. DESCRIBE THE PROBLEM YOU ARE HAVING?
In reply to Re^9: Variable number of foreach loops
by BrowserUk
in thread Variable number of foreach loops
by abhay180
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |