<?php






$null = NULL;				var_dump($null);	


$boolean = true;			var_dump($boolean);	
$boolean = false;			var_dump($boolean);	



$boolean = (bool)1;			var_dump($boolean);	
$boolean = (boolean)1;			var_dump($boolean);	

$boolean = (bool)0;			var_dump($boolean);	
$boolean = (boolean)0;			var_dump($boolean);	


$int = 0;				var_dump($int);		


$float = 0.01;				var_dump($float);	


var_dump((double)$float);					
var_dump((real)$float);						


var_dump((int)$float);						
var_dump((int)($float+1));					
var_dump((int)($float+1.9));					


$string = 'string';
var_dump($string);						


$another_string = &$string;
var_dump($another_string);
								

$string = ;
var_dump($another_string);
								

unset($another_string);

$string = 'string';

$parsed_string = ;
var_dump($parsed_string);
								
$parsed_string .= ;
var_dump($parsed_string);
								


$heredoc = <<<HEREDOC
This is the content of \$string: {$string}
HEREDOC;
var_dump($heredoc);
								


$nowdoc = <<<'NOWDOC'
This is the content of \$string: {$string}
NOWDOC;
var_dump($nowdoc);
								


$stdObject = new stdClass();	var_dump($stdObject);
								

class Foo {}
$foo = new Foo();		var_dump($foo);
								

$array = array();		var_dump($array);
								


$assoc = array(
	0 => $int,
	'integer' => $int,
	1 => $float,
	'float' => $float,
	2 => $string,
	'string' => $string,
	3 => NULL, 
	3, 
	5 => $stdObject,
	'Foo' => $foo,
);
var_dump($assoc);





















function a_function()
{
	
	var_dump(isset($foo));				

	global $foo;
	
	var_dump(isset($foo));				
}

a_function();