Well, in the case I have two arrays that are received from inputs, based on hotel room rentals, in case each room needs to display Number of adults and children, I got someone's help here on the stack to increase the number of rooms, but I had to put the $ children under the adults, in this case, children for each room, but this one is making a mistake here, does anyone know if it's possible?
$adultos = array(2, 3, 2);
$criancas = array(1, 1, 3);
$i = 1;
foreach($adults as $adultos):
echo "<strong>Quarto".$i++."</strong><br>";
echo "Adultos:".$adultos."<br>";
//AQUI PRECISAVA EXIBIR AS CRIANÇAS
echo "Crianças:".$criancas."<br>";
endforeach;
I'm hitting here to do this, if anyone can give a light ...