|
|
|
|
![]() ![]() |
![]() Group: Members
Posts: 6 Joined: 12-January 08 Member No.: 56,132 |
Post
#1
May 18 2008, 12:41 PM
Ive got this small php script that makes the numbers count up. CODE <?php for($num = 1; $num <= 10; $num++) { echo "Number: $num<br>"; } ?> Is there any way it can be changed so that the numbers count down? Thanks |
![]() Group: [MODERATOR]
Posts: 2,258 Joined: 28-May 05 From: Devon, England Member No.: 7,593 ![]() myCENT:66.37 |
Post
#2
May 18 2008, 02:35 PM
Change ++ to -- and switch the numbers round: CODE <?php
for($num = 10; $num >= 1; $num--) { echo "Number: $num<br>"; } ?> |
![]() ![]() |
|
Lo-Fi Version | Time is now: 5th December 2008 - 07:53 AM |