I am trying to concatenate a scalar with array name but not sure how to do. Lets say we have two for loops (one nested inside other) like
for ($i = 0; $i <= 5; $i++) {
for ($k = 0; $k <=5; $k++) {
$array[$k] = $k;
}
}
I want to create 5 arrays with names like @array1, @array2, @array3 etc. The numeric at end of each array represents value of $i when array creation in progress.
Is there a way to do it?