Principais perguntas e respostas de entrevista e testes online
Plataforma educacional para preparacao de entrevistas, testes online, tutoriais e pratica ao vivo

Desenvolva habilidades com trilhas de aprendizado focadas, simulados e conteudo pronto para entrevistas.

WithoutBook reune perguntas de entrevista por assunto, testes praticos online, tutoriais e guias comparativos em um unico espaco de aprendizado responsivo.

Preparar entrevista

PHP perguntas e respostas de entrevista

Test your skills through the online practice test: PHP Quiz Online Practice Test

Diferencas relacionadas

PHP vs JSP

Pergunta 1. When are you supposed to use endif to end the conditional statement?

When the original if was followed by : and then the code block without braces.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 2. Explain the ternary conditional operator in PHP?

Expression preceding the ? is evaluated, if it's true, then the expression preceding the : is executed, otherwise, the expression following : is executed.
E.g $id = isset($_GET['id']) ? $_GET['id'] : false;

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 3. How do I find out the number of parameters passed into function?

func_num_args() function returns the number of parameters passed in.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 4. If the variable $a is equal to 5 and variable $b is equal to character a, what's the value of $$b?

100, it's a reference to existing variable.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 5. What's the difference between accessing a class method via -> and via ::?

:: is allowed to access methods that can perform static operations, i.e. those, which do not require object initialization.

Isto e util? Adicionar comentario Ver comentarios
 

Mais uteis segundo os usuarios:

Copyright © 2026, WithoutBook.