String, Integer, Floating point numbers, Boolean, Array, Object, NULL.

Strings

A string is composed of texts inside a single or double quotes.

Example

<?php
	$string = "My name is Bryan"; //this is a string
?>

Integers

An integer is a number without decimal point.

  • 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)

Example

<?php
	$int = 345; //positive integer

	$int = -4; // negative integer

	$int = 2AF3; // hexadecimal integer
?>

Floating Point Numbers

A floating point is a number with a decimal point or a number in exponential form.

Example

<?php
	$float = 34.5; //floating point

	$float = 5E-3; //exponential form
?>

Booleans

Boolean can be either true or false. Boolean is commonly used in conditional logic.

Example

<?php
	$bool = true;

	if($bool == true)
		print 'True';
?>

Arrays

An array can store multiple values in one variable.

Example

<?php
	$names = array("Bryan", "Petter", "John");
	var_dump($names);
?>

Objects

Object is a data type which stores data and information on how to process that data. In PHP, an object must be explicitly declared.

To create a new object, use the new statement to instantiate a class:

Example

<?php
class foo
{
    function do_foo()
    {
        echo "Doing foo.";
    }
}

$bar = new foo;
$bar->do_foo();
?>

NULL

Null is a representation of a variable with no value.

NULL is the only possible value of data type NULL.

Example

<?php
	$var = null;
	var_dump($var);
?>

How to take Cialis it seems to me that would already be time to cease to discuss this question. As I already answered it not once. Have it in a look. You shouldn’t worry! All deer go south when they are called by homesickness. Are turned and lie on snow till some hours.