Source for file example-1.php
Documentation is available at example-1.php
include_once 'Var_Dump.php';
echo '<h1>example1.php : displaying a variable</h1>';
* example1.php : displaying a variable
* To display a variable :
* Var_Dump::display($variable);
* $str = Var_Dump::display($variable, TRUE);
* Initialise the HTML4 Table rendering
Var_Dump ::displayInit (array ('display_mode'=> 'HTML4_Table'));
$linkedArray=array ('John', 'Jack', 'Bill');
'key-1' => 'The quick brown fox jumped over the lazy dog',
'key-3-2' => & $linkedArray,
Var_Dump ::display ($array);
* Displays an object (with recursion)
echo '<h2>Object (Recursive)</h2>';
$this->myChild = new child ($this);
$this->myName = 'parent';
function child (&$parent) {
$this->myParent = & $parent;
$recursiveObject=new parent ();
Var_Dump ::display ($recursiveObject);
* Displays a classic object
echo '<h2>Object (Classic)</h2>';
Var_Dump ::display ($object);
Documentation generated on Mon, 11 Mar 2019 10:16:31 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|