In this article we will teach you some PHP Basics like Data types, Mathematical operators, Comparison operators, Comments, Conditional Statements, Loops, Global functions and Functions.
PHP Basics
Data types
integers (2), floats (2.33), booleans (true/false), strings (‘hello’)
Mathematical operators
+ addition, as in 5 + 2
– subtraction, as in 5 – 1
* multiplication, as in 5 * 2
/ division, as in 6 / 2
% modulus or the remainder of a division operation, as in 4 % 2