How to write PHP integer datatype

PHP Integer 

Integer has few rules, before writhing integer we need to consider those rules first.

Integer should be least one digit, and it should not have decimal point in place. only positive or negative integer can be considered. 

An integer has limit from -2,147,483,648 and 2,147,483,647.

Syntax : 

<!DOCTYPE html>
<html>
<body>

<?php  
$x = 1234;
var_dump($x);
?>
  

</body>
</html>

Output :

int(1234)

No comments :