arrays - PHP code - what does this part of code mean? -


What does the assignment do in this loop? I can not find the symbol of the array in it: S

  foreach ($ field value as $ field) {$ insertvalues ​​[] = $ field value; }  

$ insertvalues ​​[] Enter a new item in the array, it's a shortcut to array_push ()

Extra:

This is not certain how the loop works for those people.

  Foreach ($ field value as $ field value)  

Each time loop ... loop, value $ field value next value in which an indicator is viewing the array $ field value - thus by adding a new array `$ insertvalues ​​through the shortcut syntax above it.


Comments