This tutorial will show you how to use PHP while operator
while loops are the simplest type of loop in PHP. They behave just like their C counterparts.
Next example will show you simple code for printing the digits from 10 to 1.
![]() |
||||||||||||||||
|
|
How to use PHP while operator
This tutorial will show you how to use PHP while operator while loops are the simplest type of loop in PHP. They behave just like their C counterparts. Next example will show you simple code for printing the digits from 10 to 1.
<?php
The result from above PHP script will be: 10Also while can be used for listing arrays:
<?php
The result from above PHP script will be: 0 : One
Post Comment |
RELATED TUTORIALS Need a specific tutorial? Do not hesitate and submit a request! |
||||||||||||||
|
Home | Sitemap |
Terms & Privacy
© ONLINEHOWTO.net 2006 - 2009 |
||||||||||||||||