Source for file example-1.php
Documentation is available at example-1.php
header('Content-Type: application/xhtml+xml; charset=utf-8');
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<title>An XHTML 1.0 Strict standard template</title>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
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
$linkedArray = array ('John', 'Jack', 'Bill');
'key-1' => 'The quick brown fox jumped over the lazy dog',
'key-3-2' => & $linkedArray,
* Displays an object (with recursion)
echo '<h2>Object (Recursive)</h2>';
$this->myChild = new child ($this);
$this->myName = 'c_parent';
function child (& $c_parent) {
$this->myParent = & $c_parent;
$recursiveObject = new c_parent ();
* Displays a classic object
echo '<h2>Object (Classic)</h2>';
Documentation generated on Mon, 11 Mar 2019 15:38:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|