search

Home  >  Q&A  >  body text

for single level loop

Can anyone send me the code for a single-layer for loop to control the color-changing tables of alternate rows? Thank you!

小崔小崔2576 days ago1359

reply all(2)I'll reply

  • 路过

    路过2017-10-28 17:06:46

    Let me give you an idea

    for($i = 0; $i < 10; $i++)

    {

    if ($i%2 = = 0)

                                                 ##                                                                                                                                                                                          // Another color

    reply
    1
  • 小崔

    OK, thanks

    小崔 · 2017-10-28 17:14:43
  • Cancelreply