How to count inverse with for in php?

后端 未结 4 589
甜味超标
甜味超标 2021-01-02 02:15

My Problem: I want to count inverse in the for loop.

This is the opposite of what I want to do:

for($i=1;$i<=10;$i++){
          


        
4条回答
  •  隐瞒了意图╮
    2021-01-02 03:07

    from the PHP manual

    for (expr1; expr2; expr3) statement

    The first expression (expr1) is evaluated (executed) once unconditionally at the beginning of the loop.

    In the beginning of each iteration, expr2 is evaluated. If it evaluates to TRUE, the loop continues and the nested statement(s) are executed. If it evaluates to FALSE, the execution of the loop ends.

    At the end of each iteration, expr3 is evaluated (executed).

提交回复
热议问题