PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Richard Munroe   Structured Data Dumper   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example, try running it interactively, then accessing by a browser.
Class: Structured Data Dumper
Dump variable values in a human readable forma
Author: By
Last change: Spelling change in the description
Date: 20 years ago
Size: 297 bytes
 

Contents

Class file image Download
<?php

include_once("class.SDD.php") ;

class
a
{
  var
$a = 1 ;
}

class
b extends a
{
  var
$b = 2 ;
}

class
c extends b
{
  var
$c = 3 ;
}

$theClass = new c() ;
$theArray = array('a' => 1, 0 => 2, 'b' => 3) ;

echo
SDD::dump($theClass) ;
echo
SDD::dump($theArray) ;
?>