Dev Diaries WD logo Dev Diaries WD
PHP INTERVIEW SERIES
PHP INTERVIEW SERIES

PHP Interview Questions

Short, practical answers to the questions you actually get asked.

EP 01

== vs ===

Loose vs strict comparison and PHP type juggling.

Watch & read →
EP 02

implode() vs explode()

Converting between arrays and strings, both directions.

Watch & read →
EP 03

include vs require

What happens when a file is missing, and the _once variants.

Watch & read →
EP 04

array_combine() vs array_merge()

Zipping keys to values vs stacking arrays together.

Watch & read →
EP 05

sort vs asort vs ksort

Sorting by value, keeping keys, or sorting by key.

Watch & read →
EP 06

Fibonacci series

Turn the rule into a loop — plus the recursion follow-up.

Watch & read →
EP 07

Find & remove a value

in_array, array_search, and removing an element cleanly.

Watch & read →
EP 08

OOP: Classes & Objects

The first step into object-oriented PHP — blueprint vs instance.

Watch & read →
EP 09

OOP: Constructors

Use __construct to set up an object the moment it is created.

Watch & read →