\\ Glen Langer // 
Contao Camp 2017 in Jever
Version: 1.0.0 vom 11.11.2017
(Logos: www.zend.com)
"Zend Certified Engineer" (ZCE) / "Zend Certified PHP Engineer"
Ein ZCE:
Priorität: Hoch - Mittel - Gering
Priorität: Hoch - Mittel - Gering
Basis ist PHP 7.1, Error Reporting ist gesetzt auf E_ALL, Fehler werden angezeigt.
Einige Beispielfragen aus den einzelnen Themengebieten. Hier wurden bewust welche genommen, die in Eile oft falsch beantwortet werden.
<?php
echo count("Contao");
?>
a) 0
b) 6
c) true
d) 1
<?php
echo 'Contao ' . 1 + 2 . '34';
?>
a) Contao 334
b) 234
c) 0
d) Contao 1234
a) You can delete a cookie by using the session.rem_cookie() function.
b) You can delete a cookie by using the delcookie() function.
c) You cannot delete a cookie from a client computer.
d) You have to set the session.gc_maxlifetime INI setting in the php.ini file.
setcookie("user", "", time()-3600);
<?php
for ($i = ord('a'); $i < ord('e'); $i++);
echo chr($i);
?>
a) abcd
b) d
c) e
d) c
<?php
$a = 0;
if ($a = 10) { echo "a"; }
if ($a == 0) { echo "b"; }
if ($a == "0") { echo "c"; }
?>
a) abc
b) a
c) b
d) bc
<?php
$a = array (1, 2, 3);
$b = array (1 => 2, 2 => 3, 0 => 1);
$c = array ('a' => 1, 'b' => 2, 'c' => 3);
var_dump ($a == $b);
var_dump ($a === $b);
var_dump ($a == $c);
?>
a) false true true
b) true true false
c) true false true
d) true false false
<?php
$a = 5;
$b = 4;
$c = ($a++ * ++$b);
echo $c;
?>
a) 20
b) 24
c) 25
d) 30
<?php
define('MYCONSTANT', 0);
if (empty(MYCONSTANT)) {
echo "Hello";
}
else {
echo "Goodbye";
}
?>
a) Goodbye
b) Hello
c) Syntax Error
a) $_REQUEST[ ]
b) $_GET[ ]
c) $_POST[ ]
d) $_SEND[ ]
<?php
echo strlen(md5(rand(),TRUE));
?>
a) 64
b) 8
c) 32
d) 16
a) strstr()
b) substr()
c) strcasecmp()
d) strcmp()
<?php
$numbers = array(5, 6, 7, 8);
end($numbers);
while (key($numbers)) {
echo current($numbers);
prev($numbers);
}
?>
a) 5678
b) 8765
c) 321
d) 876
Zend Certifications:
PHP Certification:
Nützliches:
<?php
try {
drinkCoffee()
} catch (OutOfCoffeeException) {
die(-1)
}
?>