PHP Break, Continue and Exit
Break: A break statement can be used to terminate or to come out from the loop or conditional statement unconditionally. It can be used in switch statement to break and come outRead More…
Break: A break statement can be used to terminate or to come out from the loop or conditional statement unconditionally. It can be used in switch statement to break and come outRead More…
An Exit Control Loop checks the condition for exit and if given condition for exit evaluate to true, control will exit from the loop body else control will enter again into theRead More…
An entry control loop checks the condition at the time of entry and if condition or expression becomes true then control transfers into the body of the loop. Such type of loopRead More…
PHP Programming language provides one of the most powerful features known as looping structure When we want to execute some statements repeatedly based on some specific condition, looping structure can be helpful.Read More…
Similar to C-language, PHP also provides goto statement to transfer control unconditionally to other part of the program. Although use of goto statement is not advisable but sometime it is desirable toRead More…
When multiple decisions involved in the program at that time we can use else…if ladder but some time it is difficult to read and understand. In addition to this when the numbersRead More…
In the previous post we looked upon else…if ladder and in this post we will focus on another form of if statement that is nested if statement. When one if statement containsRead More…
When we have multiple options available or we need to take multiple decisions based on available condition, we can use another form of if statement called else…if ladder. In else…if ladder eachRead More…
If …else statement is an extension of simple if statement. When we have two different path to follow,then simple if statement cannot be useful because if provides a single path to follow.Read More…
Normally in PHP programming language statement are execute in a sequenced manner. Sometime we need to execute some statement based on some specific condition. Depending on the condition either we have toRead More…