New Global Constants in php 7

Prem Tiwari - - PHP Documentation


Here is the list of New Global Constants in php 7. Below is the syntax how you can use PHP global variables inside your code.

Examples to use PHP global variables

Core Predefined …

How to use a switch case ‘or’ in PHP?

Prem Tiwari - - PHP Documentation


Problem: How to use a switch case ‘or’ in PHP? Solution: This can be achieved in 2 ways. PHP Switch case syntax Use the switch statement to select one of many blocks of code to be executed. …