1
2
$variable = "this is my string";
new dBug($variable);
| This is my string |
1
2
3
4
5
6
7
8
9
$variable = array(
"first"=>"1",
"second",
"third"=>array(
"inner third 1",
"inner third 2"=>"yeah"),
"fourth");
new dBug($variable);
| $variable (array) | |||||||
| first | 1 | ||||||
| 0 | second | ||||||
| third |
| ||||||
| 1 | fourth | ||||||
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class Vegetable {
var $edible;
var $color;
function Vegetable($edible, $color="green") {
$this->edible = $edible;
$this->color = $color;
}
function is_edible() {
return $this->edible;
}
function what_color() {
return $this->color;
}
}
$variable=new Vegetable("spinach");
new dBug($variable);
| $variable (object) | |
| edible | spinach |
| color | green |
| vegetable | [function] |
| is_edible | [function] |
| what_color | [function] |
1
2
3
4
5
6
7
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link)
die('Could not connect: ' . mysql_error());
mysql_select_db('mydb');
$result = mysql_query('select * from empinfo');
new dBug($result);
| $result (resource) | ||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||
1
2
3
$xmlData="../msc/data.xml" //path to xml file;
//NOTE that you have to specify the optional forceType "xml" or else output will be a string
new dBug($xmlData, "xml");
| $xmlData,"xml" (xml document) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| xmlRoot |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||