Zend PHP Certified Engineer Practice Test
PHP certification covering PHP fundamentals, OOP, security, data manipulation, web features, databases, strings, arrays, and PHP best practices. Administered by Zend (Perforce). Key domains include And Other PHP Concepts, Arrays, Data Format and Types and Databases and SQLs.
Preguntas de Muestra
Prueba algunas preguntas para ver cómo es el examen completo.
Which function combines two arrays, treating the first as keys and the second as values?
$json = '{"name":"O\'Reilly"}'; $decoded = json_decode($json, true); echo $decoded['name']; What is printed and what is the escape rule for ' inside JSON strings?
Two traits declare the same method: trait A { public function hello() { return 'A'; } } trait B { public function hello() { return 'B'; } } class C { use A, B { A::hello insteadof B; B::hello as helloB; } } $c = new C(); echo $c->hello() . $c->helloB(); What is the output?
$data = [ ['id' => 3, 'name' => 'c'], ['id' => 1, 'name' => 'a'], ['id' => 2, 'name' => 'b'], ]; usort($data, fn($x, $y) => $x['id'] <=> $y['id']); echo $data[0]['name']; What is printed?
Which PHP function generates cryptographically secure random bytes suitable for tokens, session keys, and CSRF nonces?