$a = int(112311213)

$b = bool(true)

$c = string[5]('peter')

$d = array[3] {
    0 => int(2)
    1 => int(25)
    2 => int(42)
}

example22542

example
2
25
42

Hello World!

[debugHelper.php : 270] [exampleDebug.php : 45]

[exampleDebug.php : 28] [exampleDebug.php : 23] [exampleDebug.php : 47]


Timing: 0.009279
1 <?php
2////////////////////////////////////////////////////////////////////////
3/**
4*
5* example for debugHelper.php
6* shows the different options of the class
7*
8* For the lastest version go to:
9* http://www.phpclasses.org/browse.html/package/879.html
10*
11* @author        Lennart Groetzbach <lennartg@web.de>
12* @copyright    Lennart Groetzbach <lennartg@web.de> - distributed under the LGPL
13*/
14////////////////////////////////////////////////////////////////
15
16$dir = dirname(__FILE__);
17require_once $dir . "/../debugHelper.php";
18
19///////////////////////////////////////////////////////////////////////
20$debug->startTimer();
21
22function a() {
23   b();
24}
25
26function b() {
27   global $debug;
28   echo $debug->trace();
29}
30
31$a = 112311213;
32$b = true;
33$c = "peter";
34$d = array(2, 25, 42);
35$e = array("a" => "1","3" => "c", "b" => $d);

36
37echo $debug->dump($a) . "\n<p>\n";
38echo $debug->dump($b) . "\n<p>\n";
39echo $debug->dump($c) . "\n<p>\n";
40echo $debug->dump($d) . "\n<p>\n";
41
42echo $debug->toTable($d, 'example') . "\n<p>\n";
43echo $debug->toTable($d, 'example', false) . "\n<p>\n";
44
45echo $debug->message("Hello World!<p>\n");
46echo "<p>";
47a();
48
49///////////////////////////////////////////////////////////////////////
50
51echo "<hr>";
52
53echo "Timing: " . $debug->stopTimer();
54
55///////////////////////////////////////////////////////////////////////
56
57echo "<hr>";
58
59echo $debug->highlightFile(__FILE__);
60
61///////////////////////////////////////////////////////////////////////
62?>
63