do while loop PHP

do while loop in PHP, executes first and then checks the condition. it means, do-while loop executes at least once,…

While loop PHP

While loop in PHP, is similar to for loop, but initialization is done outside of while loop and iteration is…

Shorthand if PHP

Single statement inside if, else-if or else without curly braces, can be written in a single line called shorthand if.…

for loop PHP

For loop allows to repeat or iterate code, given number of times. Syntax for loop has four parts initialization Specifies…

Switch PHP

Switch allows to execute code on basis of condition matched to available cases, else it executes default block. It works…

If else PHP

PHP, if else allows to execute or run code on the basis of conditions. PHP provides various control structure if…

Vanilla javascript

Vanilla javascript is only and plain javascript, The original Javascript. It means any code of javascript is written without using…

Math PHP

Math in PHP, has in-built math functions, which makes mathematical operations easier. Math functions Description abs Returns absolute value bindec…

Numbers PHP

In PHP, numbers are numeric values with or without decimal part and can be negative or positive numbers. PHP has…

Operators PHP

In PHP, operators allows to perform operations on variables or values, according to its data type. PHP has following types…