<?php
$adultos = array( "a", "b", "c" ); $i = 1;
foreach ($adultos as $adulto):
echo "<strong>Quarto " . $i++ . "</strong><br>";
echo "Adultos: " . $adulto . "<br>";
endforeach;
for ($i = 0; $i < count($adultos); $i++) { echo "<strong>Quarto ". ($i + 1) ."</strong><br>";
echo "Adultos: " . $adultos[$i] . "<br>";
}
//https://pt.stackoverflow.com/q/238483/101
PD9waHAKJGFkdWx0b3MgPSBhcnJheSggImEiLCAiYiIsICJjIiApOwokaSA9IDE7CmZvcmVhY2ggKCRhZHVsdG9zIGFzICRhZHVsdG8pOgogICAgZWNobyAiPHN0cm9uZz5RdWFydG8gIiAuICRpKysgLiAiPC9zdHJvbmc+PGJyPiI7CiAgICBlY2hvICJBZHVsdG9zOiAiIC4gJGFkdWx0byAuICI8YnI+IjsKZW5kZm9yZWFjaDsKCmZvciAoJGkgPSAwOyAkaSA8IGNvdW50KCRhZHVsdG9zKTsgJGkrKykgewogICAgZWNobyAiPHN0cm9uZz5RdWFydG8gIi4gKCRpICsgMSkgLiI8L3N0cm9uZz48YnI+IjsKICAgIGVjaG8gIkFkdWx0b3M6ICIgLiAkYWR1bHRvc1skaV0gLiAiPGJyPiI7Cn0KCi8vaHR0cHM6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzIzODQ4My8xMDE=