-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·73 lines (65 loc) · 1.17 KB
/
index.php
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
include 'RedGoatDump.php';
class Test {
protected $test;
public static $test1;
private $test2;
public function __construct($test)
{
$this->test = $test;
$this->test2 = 222;
}
private static function myPrivateMethod() :string
{
echo "Hellluu!";
}
}
$test = [
'key' => 1,
3,
'three',
'string',
true,
new Test('test'),
[
[
'item' => 'value',
[
[
"obj" => (object)[
"param" => "value"
]
]
]
]
],
(object) [
1 => 3
],
(object) [
'param' => 4
],
(object)[]
];
$rg = new RedGoatDump;
$rg->dump(null);
$rg->dump(1);
$rg->dump('leo');
$rg->dump([]);
$rg->dump(["leo", "diana", ["tibi", "daza", "luca", [ "aikeon", "bismarck"]]]);
$rg->dump([
[
1, 2, 3,
[
4, 5,
[
6, 7, 8
]
]
],
9, 10
]);
$rg->dump($test);
// echo "<pre>";
// var_dump($test);
// echo "</pre>";