My business partner just asked the following, and I'm not sure about how to do it:
Is there a way of using a variable to represent an array name...?? i.e.
I thought there was some way of doing it using the $ symbol in front of the array name i.e. $var = $@array, basically he wants to load the array name dynamically in the foreach loop if that makes sense.
Thanks in advance.
Rob Waite
Is there a way of using a variable to represent an array name...?? i.e.
Code:
$var = @ARRAY (the name of the array not the value)
foreach $whatever(@[$var]) { . . . .. }
I thought there was some way of doing it using the $ symbol in front of the array name i.e. $var = $@array, basically he wants to load the array name dynamically in the foreach loop if that makes sense.
Thanks in advance.
Rob Waite