X
    Categories: PHP

PHP Basics

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

Ivan Dimov: Ivan is a student of IT, a freelance web designer/developer and a tech writer. He deals with both front-end and back-end stuff. Whenever he is not in front of an Internet-enabled device he is probably reading a book or traveling. You can find more about him at: http://www.dimoff.biz. facebook, twitter