l100/opdrachten/H10/arrays.php

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <?php $getallen = [10, 20, 45,107, 23,54]; for($i=0;$i < count($getallen);$i++){ //echo "<div>$getallen[$i]</div>"; } foreach($getallen as $pipo){ echo "<div>$pipo</div>"; } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse