PHP Switch Case Statements

In this tutorial, we will learn about How to use PHP Switch Case Statements. PHP Switch Caseis the alternatives of PHP else if statement and can be used in place of PHP else/if. The switch case php is used to execute one of many blocks of code. The switch statement is...

PHP If…Else Statements

PHP If else Condition In this PHP tutorial, today we learn PHP If else Condition with the help of examples. PHP Conditional statements are used to perform different actions based on the results of a logical or comparative test conditions at run time PHP Conditional...

PHP Arrays

PHP Arrays An array is a data structure that holds multiple values in one single variable at a time. Let’s see you have a multiple items (a list of fruit names, for example), storing the fruit in single variables could look like this: $fruit1 =...

PHP Operators

PHP Operators Operators are symbols that are used to perform certain operations on variables and values using operators. For example, the subtraction ( – ) symbol is an operator that tells PHP to subtract two variables or values, while the greater-than ( > )...

PHP Functions

PHP Functions A PHP function is a piece of code that can be used repeatedly in a program. The main advantage of using functions is that they are reusable; if you have a code that needs to be performed a number of times, a function is the best idea for this solution....

PHP Constants

PHP Constants A constant is a name or an identifier that can’t be changed during the execution of the script (except magic constants). A valid PHP constant name starts with a letter or underscore (no $ sign before the constant name). There are two way to defined...

Pin It on Pinterest