Note that you can use any variable name you like to store the value. Essentially, any variable that you place after the as in the foreach statement gets assigned the current element's value.
If you want to change selection, open document below and click on "Move attachment"
php 6", "Tolkien", "Dickens" ); foreach ( $authors as $val ) { echo $val . "
"; }
This code displays:
Steinbeck
Kafka
Tolkien
Dickens
Note that you can use any variable name you like to store the value. Essentially, any variable that you place after the as in the foreach statement gets assigned the current element's value.
Try it yourself: Using foreach to Loop Through Values
Using foreach to Lo Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details