-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpdebug.php
More file actions
48 lines (29 loc) · 1 KB
/
phpdebug.php
File metadata and controls
48 lines (29 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
require_once('phpconsole.php');
$consolePHP = new PHPConsole();
$stringinput = "hewllo world 10";
$numeric = 11;
$age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43");
$os=array("OS","Linux","Windows");
$consolePHP->console($stringinput,"warning");
$consolePHP->console("hel\"lo","log","hello");
$consolePHP->console("nothing here","log");
$consolePHP->clear();
$consolePHP->console($stringinput,"warning");
$consolePHP->console("hel\"lo","log","hello",true);
$consolePHP->console("nothing here","log");
$consolePHP->console($numeric,"info");
$consolePHP->console($stringinput,"error");
$consolePHP->console($age,"log","Array 1",true);
$consolePHP->console($os,"log");
$cart = new MyClass;
$consolePHP->console($cart,"log");
class MyClass {
public $prop1 = "I'm a class property!";
public function setProperty($newval) {
$this->prop1 = $newval;
}
public function getProperty() {
return $this->prop1 . "<br />";
}
}