-
Notifications
You must be signed in to change notification settings - Fork 0
/
var_dump.php
85 lines (77 loc) · 2.55 KB
/
var_dump.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
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>var_dump</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<body>
<div class="container mt-4">
<div class="row">
<h2 class="col-12 text-center m-4">Bez použití PRE</h2>
<div class="col-6">
<h3>Text</h3>
<?php var_dump("Ahoj světe!"); ?>
</div>
<div class="col-6">
<h3>Celé číslo</h3>
<?php var_dump(42); ?>
</div>
<div class="col-6">
<h3>Pole</h3>
<?php var_dump([1, 2, 3, 4, 5]); ?>
</div>
<div class="col-6">
<h3>Asociativní Pole</h3>
<?php
$knihy = [
[
"nazev" => "Čistý kód",
"cena" => 200,
],
[
"nazev" => "Harry Potter a Kámen mudrců",
"cena" => 600,
],
];
?>
<?php var_dump($knihy); ?>
</div>
</div>
<hr>
<div class="row">
<h2 class="col-12 text-center m-4">S použitím PRE</h2>
<div class="col-6">
<h3>Text</h3>
<pre><?php var_dump("Ahoj světe!"); ?></pre>
</div>
<div class="col-6">
<h3>Celé číslo</h3>
<pre><?php var_dump(42); ?></pre>
</div>
<div class="col-6">
<h3>Pole</h3>
<pre><?php var_dump([1, 2, 3, 4, 5]); ?></pre>
</div>
<div class="col-6">
<h3>Asociativní Pole</h3>
<?php
$knihy = [
[
"nazev" => "Čistý kód",
"cena" => 200,
],
[
"nazev" => "Harry Potter a Kámen mudrců",
"cena" => 600,
],
];
?>
<pre><?php var_dump($knihy); ?></pre>
</div>
</div>
</div>
</body>
</html>