I currently have the following object in php:
"Direction": "Please choose the direction"
"Media": "Please choose the stock"
"Coating": "Please choose the coating"
I then loop through it with a foreach
foreach ($product as $key => $att) {
// is there away I can get the index? Meaning 0, 1, etc?
}
In the foreach is there away I can get the index? I need a numerical index value.