extension joomla, template joomla,banner extension joomla,jomla slider,slider joomla
Different Data Types in PHP
PHP supports wide range of Data Types. It supports eight different primitive data types: four scalar types (boolean, integer, float, string), two command types: (array and object) and finally two special types (resource, NULL). All these data types are discussed below:
Boolean:
Boolean is data type whose value is either true or false. True and false in PHP are case insensitive. To specify a boolean literal, use the keywords TRUE or FALSE. For example:

Integer: 

An integer is number of the set I = {…, –3, –2, –1, 0, 1, 2, 3 ,…….} .Integer can be specified in Decimal, Hexadecimal, Octal or Binary. For example:

Float:

Floating points numbers are real numbers. There are infinite floating point numbers between any two integer. In PHP, there are different ways to represent floating point numbers.

String:

string in PHP is stream of characters. A statement that is enclosed by single (‘’) or double quote (“ “) is regarded as string. There are various operations on string in PHP. Some are



Related Article



destination source:https://www.programming-techniques.com/?p=107