가장 많이 묻는 면접 질문과 답변 & 온라인 테스트
면접 준비, 온라인 테스트, 튜토리얼, 라이브 연습을 위한 학습 플랫폼

집중 학습 경로, 모의고사, 면접 준비 콘텐츠로 실력을 키우세요.

WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.

Prepare Interview

PHP 면접 질문과 답변

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

관련 차이점

PHP vs JSP

Ques 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.

도움이 되었나요? Add Comment View Comments
 

Ques 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;

도움이 되었나요? Add Comment View Comments
 

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

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

도움이 되었나요? Add Comment View Comments
 

Ques 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.

도움이 되었나요? Add Comment View Comments
 

Ques 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.

도움이 되었나요? Add Comment View Comments
 

Most helpful rated by users:

Copyright © 2026, WithoutBook.