| Topic: PHP & MySQL PHP Control Statement if, elseif, elseif ( ) switchswitch ( ) whileSyntax: while (condition) dodo {
forExample use of the for statement: <?phpfor ( $n = 1; $n < 10; $n++) { echo "$n<BR>"; } ?> For ... each <?php breakIs used to end the execution of a for, switch, or while statement continueThis statement is used to skip the rest of the current loop. <?php
|
|