after for each loop in php

PHP
$clothes = array("hat","shoe","shirt");
foreach ($clothes as $item) {
	echo $item;
}<?php
$age = array("Peter"=>"35", "Ben"=>"37", "Joe"=>"43");

foreach($age as $x => $val) {
  echo "$x = $val<br>";
}
?>
Source

Also in PHP: