Willkommen auf meinem Apache-Webserver!

Dieser Server verwendet MariaDB 10.11.8-MariaDB-0ubuntu0.24.04.1

Wissensportal

PHP

<?php
$tiere = ["Wal", "Gans", "Affe", "Nashorn", "Zebra", "Esel"];

foreach ($tiere as $tier) {
    echo $tier . "\n";
}
?>

PHP (Alternative Syntax)

<?php
$tiere = ["Wal", "Gans", "Affe", "Nashorn", "Zebra", "Esel"];
?>

<?php foreach ($tiere as $tier): ?>
    <?php echo $tier . "\n"; ?>
<?php endforeach; ?>

Python

tiere = ["Wal", "Gans", "Affe", "Nashorn", "Zebra", "Esel"]
           #0      #1     #2       #3         #4      #5

for tier in tiere:
    print(tier)