Newbie asks a simple question foreach ($ _ POST ['loginform'] as $ name => $ value)
What does the red part mean?
Reply to discussion (solution)
=> Indicates an array member.
Subscript or join key on the left and value on the right
You can understand it as a format, just like creating an array $ arr = array ($ key => $ value). the left side represents the subscript, associated key value, and the right side is the value.
Foreach ($ _ POST ['loginform'] as $ name => $ value)
This is what I just learned, right ..
Traverse $ name => $ value (key-value pair) and put it in the $ _ POST ['loginform'] array
But what does loginForm mean?
The red part indicates "corresponding", that is, the member val value corresponding to the key in the array.
Key indicates the value of the position val => indicates the value corresponding to the position.