Home  >  Q&A  >  body text

How to do the double-layer loop operation of for

Asking for code

WINGWING2424 days ago1429

reply all(5)I'll reply

  • 如风

    如风2018-02-05 17:15:44

    Code screenshotQQ截图20180205171227.png

    Screenshot of the effect after running:QQ截图20180205171312.png


    I wonder if I can meet your requirements

    reply
    1
  • beautiful.tomrrow

    Your numbers are all arranged in one line, and there is no way to break the line between the specified numbers.

    beautiful.tomrrow · 2018-05-04 17:40:04
  • 清尘

    清尘2018-02-05 03:44:59

    What's the meaning? ?

    for($i=0;$i<5;$i++)
    {
    echo "<br>";
    for($j=0;$j<5;$j++)
    {
    echo $j;
    }
    }

    Output

    01234

    01234

    01234

    01234

    01234

    The outer layer controls how many times the inner layer loops

    reply
    1
  • 刘昆明

    刘昆明2018-02-02 17:11:28

    <script>alert('你好')</script>

    reply
    2
  • Cancelreply