Variables & Data Types – PHP Basics

Variables are the storage of different types of information. You cannot start with a number while declaring a variable and it starts with ‘$’ sign followed by variable name (for ex. $code). It can only contain underscore and alpha numeric characters. ‘$code’ and ‘$CODE’ are two different variables here because its case sensitive. Declaring Variables

Continue reading Variables & Data Types – PHP Basics

If..Else..ElseIf, Switch Statements – PHP Basics

If…Else..ElseIf Statement is used when you want to perform different conditions in a program. If one condition is true another is also true – If Statement If one condition is true and another is false – If..else Statement If more than two condition is needed – If..else..elseIf Statement Selects one of many blocks of code

Continue reading If..Else..ElseIf, Switch Statements – PHP Basics