Traverse a range in PHP

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Traverse a range in PHP

    say, I declared a range by

    $range = activesheet()->range("D8:Z8");

    how can I traverse it? I'd like to do sth like

    foreach ($range as $r)
    if ($r->value > 0.5)

    On similar lines, is it possible to traverse the cells in a row of a worksheet?

    Cheers Tuomo