foreach() rotation
    $values = array(...);
    foreach($values as $value) {
        // do something
    }

**How to run each `$value` after finishing the previous?**

Now all the `$value` starting at the same time, but it should be working just one at same moment, like:

    do first $value
    if first is finished do the second $value
    if second if finished do third $value
    and so on

Thanks.
foreach() rotation
===

    $values = array(...);
    foreach($values as $value) {
        // do something
    }

**How to run each `$value` after finishing the previous?**

Now all the `$value` starting at the same time, but it should be working just one at same moment, like:

    do first $value
    if first is finished do the second $value
    if second if finished do third $value
    and so on

Thanks.