How can I loop through an array in PHP? Example code - Biz Tech

How can I loop through an array in PHP? Example code

Listen
$fruits = array("apple", "banana", "orange");

foreach ($fruits as $fruit) {
    echo $fruit . "<br>";
}