What are some common control structures in PHP for defining loops?

Common control structures in PHP for defining loops include `for`, `while`, and `foreach` loops. These structures allow you to iterate over arrays, perform repetitive tasks, and control the flow of your program based on certain conditions. Understanding how to use these loop structures is essential for writing efficient and effective PHP code.

// Example of a for loop
for ($i = 0; $i < 5; $i++) {
    echo "The value of i is: $i <br>";
}

// Example of a while loop
$i = 0;
while ($i < 5) {
    echo "The value of i is: $i <br>";
    $i++;
}

// Example of a foreach loop
$colors = ["red", "green", "blue"];
foreach ($colors as $color) {
    echo "The color is: $color <br>";
}