php array foreach ($array as $key=>&$value) { code example
Example: php loop through array
$clothes = array("hat","shoe","shirt");
foreach ($clothes as $item) {
echo $item;
}
$clothes = array("hat","shoe","shirt");
foreach ($clothes as $item) {
echo $item;
}