Answer by Mikey for Foreach loop explanation
You can look at it like so:foreach ($array as $key => $value) {}So in an array that is structured like so:$arr = ['some', 'values' , 'to', 'populate', 'the', 'array'];The $key would be the array...
View ArticleForeach loop explanation
Can someone explain this code structure please? // Remove all fields and field instances. foreach (field_info_instances('node', 'windfarm') as $field_name => $instance) {...
View Article