This question already has an answer here:
- variable variables 5 answers
I have two arrays:
$my_array1= array("A", "B");
$my_array2= array("1", "2");
Is it possible to use variables ($x) in the index of the array like this:
for ($x = 1; $x <= 2; $x++) {
Echo $my_array.$x[0];
}
How to achieve this?
</div>