$arr = ['Item 1', 'Item 2', 'Item 3'];
foreach ($arr as $item) {
var_dump($item);
}
<?php
$freelancer = array(
"name" => "Eric",
"email" => "Eric@gmail.com",
"age" => 22,
"gender" => "male"
);
// Loop through employee array
foreach($freelancer as $key => $value) {
echo $key . ": " . $value . "<br>";
}
?>