| | 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 |
|
|
Change ++ to -- and switch the numbers round:
CODE <?php
for($num = 10; $num >= 1; $num--) { echo "Number: $num<br>"; } ?> |
|
![]() Php For |
| ADD REPLY / Got an Opinion! | a humble request :-) | RAPID SEARCH! | Free Hosting | [X] |
|
Express your Opinions, Thoughts or Contribute your information that might help someone here. Ask your Doubts & Queries to get answers.. "Together, We enlight each other!" |
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP. | 500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE |
|