Author name: Tutor Network Team

PHP else Keyword

In this article, you will learn about the else keyword in PHP. The else keyword in PHP specifies a block of code that should run when the condition of an if statement is not met. examples of the ELSE keyword Example 1. In this example, we run some code when a condition is not met.

PHP enddeclare Keyword

In this article, you will learn about enddeclare keyword in PHP. The enddeclare keyword in PHP is used to close a declare block which was started using the declare(…): syntax. examples of the ENDDECLARE keyword Example 1. In this example, we close a declare block.

PHP endfor Keyword

In this article, you will learn how to end the for loop block in PHP. The endfor keyword in PHP is used to close the code block of a for loop which was started using the for(…): syntax. examples of the ENDFOR keyword Example 1. In this example, we close a for loop block.

PHP endforeach Keyword

In this article, you will learn how to end the foreach block in PHP. The endforeach keyword in PHP is used to close the code block of a foreach loop which was started using the foreach(…): syntax. examples of the ENDFOREACH keyword Example 1. In this example, we close a foreach loop block.

PHP endswitch Keyword

In this article, you will learn how to end the switch block in PHP. The endswitch keyword in PHP is used to mark the end of a switch conditional which was started with the switch(…): syntax. examples of the ENDSWITCH keyword Example 1. In this example, we close a switch conditional block.

en English
X
Scroll to Top