PHP Entry Control Loop
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…
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…
The following program demonstrates how 2D-array can be used as a function argument. The below program performs basic matrix operations such as matrix addition, multiplication, transpose of a matrix etc. /* ProgramRead More…
Similar to normal variable, we can also pass an array to the function. There is no major difference between passing a variable and array except that we have to specify the dimensionRead More…