Project 7: For Each Array

The foreach loop in PHP is a powerful tool for iterating through arrays. Here’s a quick explanation about For Each Array:

What it does: It allows you to process each element in an array one by one.
Syntax: foreach ($array as $key => $value) { … }
$array: The array you want to loop through.
$key: (Optional) Represents the index (position) of the current element.