php+loop over array and get index and values code example
Example: loop through php array
foreach (array_expression as $value)
statement
foreach (array_expression as $key => $value)
statement
foreach (array_expression as $value)
statement
foreach (array_expression as $key => $value)
statement