How to count inverse with for in php?

后端 未结 4 616
甜味超标
甜味超标 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:08

    I don't get it, just doing

    for($i=10;$i>=1;$i--){
        echo $i;
    }
    

    is not enough?

提交回复
热议问题