There are arrays:
$array_8 $array_9 Their number and numbers may be different. The numbers are stored in a separate $ arr_id array.
Example $ arr_id:
Array ( [0] => 8 [1] => 9 ) Tell me, please, is it possible to somehow sort through these arrays without manually specifying the number?
Something like that:
<?php foreach ($arr_id as $id) { ?> <?php foreach ($array_"тут номер $id" as $value) { ?>