While | Do While | For | Foreach | Loop in php is used to execute until provided expression is true.
In PHP, four type of loop available.
1. WHILE Loop
2. DO WHILE Loop
3. FOR Loop
4. FOREACH Loop...
if else statements are very basic blocks to check condition(boolean expression) to execute appropriate block.
IF ELSE STATEMENTS :
SYNTAX:
if (booleanExpression) {
// if booleanExpression is True this code will execute
your code here….
} else {
// if booleanExpression is False this code will execute
your code here….
}...
Array is a collection of similar types of datatype.
Array is used to stores multiple values in one place.
Array contains key => value pair, each value in array assigned on a key (index).
We can fetch stored value with the use of key (index)....
A string is a sequence or series of characters, numbers, symbols in php.
Characters comes inside single quotes or double quotes treat as string.
We can create string by enclosing characters inside single / double quotation mark....
Variable in PHP is used to store a value in memory.
We can store integer, strings, characters, decimals in memory by using variables in PHP....