php for loop decrease

Discussion in 'PHP' started by Silver89, May 31, 2008.

  1. #1
    I'm trying to make a loop decrease so it goes down instead of up,

    for($i = 1461222; $i < 1; $i-1)
    PHP:
    Thanks
     
    Silver89, May 31, 2008 IP
  2. goldensea80

    goldensea80 Well-Known Member

    Messages:
    422
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    128
    #2
    Change the sign of the conditional operator, please
    for($i = 1461222; $i > 1; $i-1)
    PHP:
     
    goldensea80, May 31, 2008 IP