-
Notifications
You must be signed in to change notification settings - Fork 0
/
gewinnspiel-072018.html
146 lines (115 loc) · 3.51 KB
/
gewinnspiel-072018.html
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html lang="en">
<head>
<title>PHPUGKA - Gewinnspiel</title>
<link rel="stylesheet" href="bower_components/reveal-js/css/reveal.css">
<link rel="stylesheet" href="bower_components/reveal-js/css/theme/simple.css" id="theme">
<link rel="stylesheet" href="bower_components/reveal-js/lib/css/zenburn.css">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<img src="images/phpugka.png" width="500" style="border: 0; box-shadow: none">
<h2>Gewinnspiel</h2>
</section>
<section>
<img src="images/phpdd18.svg" width="800" height="400" style="border: 0; box-shadow: none">
<h3>September 21st & 22nd 2018 in Dresden</h3>
<h2>Gutscheincode</h2>
</section>
<section>
<img src="images/jetbrains.png" width="400" height="400" style="border: 0; box-shadow: none">
<h2>Gutscheincode</h2>
</section>
<section>
<h2>Code-Beispiele als</h2>
<h2>PHP 7.2</h2>
</section>
<section>
<h3>Beispiel</h3>
<pre><code class="php">
<?php
$notArray = null;
var_dump($notArray['key']);
</code></pre>
<div class="fragment fade-in">null</div>
</section>
<section>
<pre><code class="php">
<?php
class MyIterator extends FilterIterator
{
public function accept()
{
return false != $this->current();
}
}
$iterator = new MyIterator(new ArrayIterator([30, null, '0', 2, 0, 8]));
$result = '';
foreach ($iterator as $value) {
$result .= $value;
}
var_dump($result);
</code></pre>
<div class="fragment fade-in">3028</div>
</section>
<section>
<pre><code class="php">
<?php
var_dump(
strtr(substr('Hello World', -5), ['l' => ''])
);
</code></pre>
<div class="fragment fade-in">Word</div>
</section>
<section>
<pre><code class="php">
<?php
$array = ['13,5', '5.7', '22.8', 5.9, 6.0];
var_dump(
preg_grep('/\d\.\d/', $array)
);
</code></pre>
<div class="fragment fade-in">['5.7', '22.8', 5.9]</div>
</section>
<section>
<pre><code class="php">
<?php
$array = ['k', 'a', '3', 'Ä', 'z'];
sort($array);
foreach ($array as $element) {
echo $element;
}
</code></pre>
<div class="fragment fade-in">3akzÄ</div>
</section>
<section>
<pre><code class="php">
<?php
$array = array_flip([1, 3, 4, 5, 1]);
foreach ($array as $element) {
echo $element;
}
</code></pre>
<div class="fragment fade-in">4123</div>
</section>
</div>
</div>
<script src="bower_components/reveal-js/js/reveal.min.js"></script>
<script type="application/javascript">
Reveal.initialize({
center: true,
width: 1200,
height: 800,
minScale: 1.0,
maxScale: 10.0,
rollingLinks: true,
transition: 'linear' // default/cube/page/concave/zoom/linear/fade/none
});
</script>
<script type="text/javascript" src="bower_components/reveal-js/plugin/highlight/highlight.js"></script>
<script type="text/javascript">hljs.initHighlightingOnLoad();</script>
</body>
</html>