$featured = array('name' => 12,'yeah' => 10);
foreach($featured as $key => $value){
echo $key;
echo " - ";
echo $value;
echo "<br />";
}
Yes, he supports this in the next iteration of the loop.
Conclusion:
name - 12
yeah - 10
BTW, another way to access key from an array.
$featured = array('name' => 12,'yeah' => 10);
while (current($featured)) {
echo key($featured).'<br />';
next($featured);
}
Conclusion:
name
yeah
source
share