1. Careers
Send to a Friend via Email

PHP Interview Questions

By

Review a list of frequently asked PHP interview questions and more questions asked during job interviews where you will be asked about your technical skills.

PHP Interview Questions

Imagine you are trying to assign a variable the value of 0123, but it keeps coming up with a different number. What is the issue?

I want to combine two variables together. What will work faster?
Code sample 1: $var 3 = $var1.$var2;
Code sample 2: $var3 = "$var1$var2";

Imagine you are writing an application in PHP that outputs a printable version of driving directions. It contains some long sentences, and you want to ensure that no line exceeds 50 characters. How can you accomplish that with PHP?

How do you define a constant?

How do you call a constructor for a parent class?

Explain the differences between echo, print and printf.

Explain the ternary conditional operator in PHP.

Will the comparison of string "10" and integer 11 work in PHP?

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

What is the special meaning of __sleep and __wakeup?

General Job Interview Questions
In addition to job specific interview questions, you will also be asked more general questions about your employment history, education, strengths, weaknesses, achievements, goals and plans. Here's a list of the most common interview questions and examples of answers.

Read More: How to Prepare for an Interview | What to Wear to a Job Interview | Top 10 Job Interview Tips | Common Interview Mistakes to Avoid

©2014 About.com. All rights reserved.