Quote:
|
Originally Posted by Stefan
There is also the possibility to use makevar() which doesn't accept array brackets though, nothing really dynamic except the name of the variable.
|
so I could run through a for loop and use makevar()? I'll try that. Hmmm... actually, this creates a challenge... scattered arrays on top of multidimensional.
Yea, I'll test this, don't know if temp. is local to the block of code only though.
PHP Code:
function evaluate(arr) {
temp.myBools = new[arr.size()];
for (i:arr)
if (arr[i].size > 1)
temp.myBools[i] = evaluate(arr[i]);
else
temp.myBools[i] = makevar(arr[i]);
return temp.myBools;
}
or wait, i don't think I understand this at all anymore.