mitschrieb 24-12-11 (progp) und ordner umbennung

This commit is contained in:
danielvici123
2024-12-11 12:26:43 +01:00
parent ee30642461
commit fba77e8e92
7 changed files with 164 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
<?php
$sonnenstunden = [8.9, 5.7, 8.3, 9.0, 0.5];
echo "<h2>for</h2>";
for ($i = 0; $i < count($sonnenstunden); $i++) {
echo "$sonnenstunden[$i]<br>";
}
echo "<h1>-------------</h1>";
echo "<h2>foreach</h2>";
$sonnenstunden[]=4.8;
foreach ($sonnenstunden as $sonnen) {
echo "$sonnen<br>";
}
?>