php foreach array with key and value code example
Example 1: php loop through array
$clothes = array("hat","shoe","shirt");
foreach ($clothes as $item) {
echo $item;
}
Example 2: php foreach echo key value
foreach($page as $key => $value) {
echo "$key is at $value";
}