Hello,
Extremely new here....have a question about some code I'm working on. The code is below:
if ($symbols["$a"]["$b"] == $random)
{
$x=1;
$r{$z}[0] = $a;
$r{$z}[1] = $symbols["$a"][0];
}
There is a large while loop running that uses $z as a counter. I'm trying to create an array such as
$r1[0] = $a;
$r1[1] = $symbols["$a"][0];
But by dynamically loading the counter variable $z into the array name. Does that make sense? Anyone know what I can do to fix this? Thanks!