PHP if2

Write a program to show the use of if statement in PHP? Output:

PHP Loops

Often when you write code, you want the same block of code to run over and over again in a row. Instead of adding several … Read more

PHP Switch Statement

PHP (Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. PHP … Read more

PHP Constant

Constants are variables that except once they are defined they cannot be undefined or changed. A constant is an identifier or a name.The value cannot … Read more

PHP Data types

DATATYPES IN PHP Data Types: Data types defines the type of values a variable can store. PHP supports the following data types:· String· Integer· Float … Read more

PHP Variables

Variables in PHP Variables are like a container to store data.Variables in php starts with Dollar sign ($). Example: $a = “Hello”;$b = 50;$c = … Read more