On each pass through the loop, the $value variable gets set to the value of the current element
If you want to change selection, open document below and click on "Move attachment"
php 6
// (do something with $value here)
}
// (rest of script here)
As you might imagine, the foreach loop continues to iterate until it has retrieved all the values in the array, from the first element to the last. <span>On each pass through the loop, the $value variable gets set to the value of the current element. You can then do whatever you need to do with the value within the loop's code block. Then, the loop repeats again, getting the next value in the array, and so on.
Here's an Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details