ForEach Loop with counter Index

Loop through the array and using an external counter variable $index