Skip to content

Tag Archives: PHP-Control-Statement

The PHP match expression is used for the identity check of a value. It is similar to the switch statement i.e. it matches the expression… Read More
Using break keyword: The break keyword is used to immediately terminate the loop and the program control resumes at the next statement following the loop.… Read More
Given an array of elements and the task is to determine first and last iteration in foreach loop. There are many ways to solve this… Read More
In PHP break is used to immediately terminate the loop and the program control resumes at the next statement following the loop. Method 1: Given… Read More
Problem: How to use a switch case ‘or’ in PHP? Solution: This can be achieved in 2 ways. They are as follows: Method 1: Without… Read More