foreach is looping statement works only on arrays (and objects).
If you want to change selection, open document below and click on "Move attachment"
php 6ough Arrays with foreach
As you just saw, it's easy to use each() in combination with while to loop through all the elements of an array. In fact, there's an even easier way: you can use PHP's foreach statement.
<span>foreach is a special kind of looping statement that works only on arrays (and objects). You can use it in two ways. You can either retrieve just the value of each element, or you can retrieve the element's key and value.
|status||not read|| ||reprioritisations|
|last reprioritisation on|| ||reading queue position [%]|
|started reading on|| ||finished reading on|