PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
foreach iterates over an array where it breaks out the keys (indice names) or each element and the value (depending on how you call it)
foreach( expressionasindex variable=>value variable ) statement block
each time the statement block is entered, index variable and value variable will be the next available index and value in the array.
foreach( expressionasvalue variable ) statement block
each time the statement block is entered, value variable will be the next available value in the array.