diff --git a/docroot/html/_head.php b/docroot/html/_head.php new file mode 100644 index 0000000..cd44d35 --- /dev/null +++ b/docroot/html/_head.php @@ -0,0 +1,35 @@ + + + + + <?php echo $title; ?> + + + diff --git a/docroot/html/loops.php b/docroot/html/loops.php index b34d44d..c1a075d 100644 --- a/docroot/html/loops.php +++ b/docroot/html/loops.php @@ -1,22 +1,34 @@ - - - - looping! - - +

Using <pre> bgcolor =

+ +
+
+
+
+
+ + +
 "My House",
+        "2nd" => "My Car",
+        "3rd" => "My Lab"
+    );
+
+    foreach ($array as $key => $value) {
+
+        if ($value == "My Lab") {
+            $array[$key] = $value = "My Laboratory";
+        }
+
+        print "$key holds the value $value \n";
+    }
+
+    ?>
+