Source for file example-5.php
Documentation is available at example-5.php
/* style for XHTML_Text */
pre.var_dump { line-height:1.8em; }
pre.var_dump span.type { color:#006600; background:transparent; }
pre.var_dump span.value { padding:2px; color:#339900; background:#F0F0F0; border: 1px dashed #CCCCCC; }
include_once 'Var_Dump.php';
echo '<h1>example5.php : Text displaying modes</h1>';
* example5.php : Text displaying modes
$linkedArray=array (0=> 'john', 11=> 'jack', 127=> 'bill');
'key-1' => 'This is an example of string',
'long-key-3-2' => & $linkedArray,
echo '<h2>Compact mode (offset 4)</h2>';
$obj = & Var_Dump ::singleton (array ('display_mode' => 'HTML4_Text'),array ('mode'=> 'compact','offset'=>4 ));
Var_Dump ::display ($array);
echo '<h2>Normal mode (offset 4)</h2>';
$obj = & Var_Dump ::singleton (array ('display_mode' => 'HTML4_Text'),array ('mode'=> 'normal','offset'=>4 ));
Var_Dump ::display ($array);
echo '<h2>Wide mode (offset 4)</h2>';
$obj = & Var_Dump ::singleton (array ('display_mode' => 'HTML4_Text'),array ('mode'=> 'wide','offset'=>4 ));
Var_Dump ::display ($array);
Documentation generated on Mon, 11 Mar 2019 10:16:07 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|