PHP Data Type
Variable can store of Different types, and data types can do different things.
PHP supports the following data type :
1.string
2.Integer
3.float
4.Boolean
5.Array
6.Object
7.Null
8.Resource
An integer is a whole number (without decimals). It is a number between -2,147,483,648 and +2,147,483,647.
Rules for integers:
*An integer must have at least one digit (0-9)
*An integer cannot contain comma or blanks
*An integer must not have a decimal point
*An integer can be either positive or negative
*Integers can be specified in three formats: decimal (10-based), hexadecimal (16-based - prefixed with 0x) or octal (8-based - prefixed with 0)
Now , I will teach you ...... integer
There are below more Example
# For Example : 1
<?php
$a = 10;
echo $a."<br>";
$c = 20;
$c += 30;
echo $c ."<br>";
$z =2;
echo $z *=5;
echo "<br>";
$x = 11;
$b = ++$x;
echo $b;
?>
You can see below Video Tutorial
