The If - Else statement in PHP (if...else)

As with other programming languages, one of the most important features in controlling the code process flow is the IF - ELSE statement. The IF - ELSE is a construct which...

The SWITCH - CASE - DEFAULT statement in PHP (switch...case...default)

The SWITCH - CASE - DEFAULT statement is very helpful in case when a script contains multiple conditions to be observed and resolved. This statement starts with a single state...

The WHILE statement in PHP (while)

The while statement is used in a while loop in cases when there is a need to repeat the code over and over again till main condition is met. The code inside the...

The DO - WHILE statement in PHP (do...while)

The do...while statement is very similar to the while statement except th...

The FOR statement in PHP (for)

The for statement is a maintstream loop controlling statement across most of programming languages. When number of repetition of loop is known, the for loop is the be...

The FOR-EACH statement in PHP (foreach)

The foreach statement, although it sounds like an extension of the for statemen...

The BREAK and CONTINUE statements in PHP (break ,continue)

The break and continue statements are frequently used in combination with conditional statements