You are on page 1of 2

How to Hire a PHP Developer PHP engineers are often required to have a knowledge of the full web stack:

star ting with the ability to write optimized SQL queries, and wrapping up with a goo d understanding of HTML/CSS. When interviewing a PHP developer, make sure that y ou think through your requirements and test for all of them in your interview. Here's a suggestion for a good menu of PHP interview questions: Start off with some basic SQL such as SQL Skills: Joins, Averages and Sums Include at least one simple coding task such as Separate a list of integers or F ind the missing number Explore their ability to come up with an overall system design and data model wi th a flexible question like Design a restaurant reservation system or Design a c ard game system Ensure that they have a solid understanding of the basic building blocks of the web by asking about HTTP GET and POST or What are HTTP cookies? Wrap up with some CSS questions like Explore the HTML display and position attri butes or CSS rule-set basics Design a flexible image conversion interface in PHPTry Me! Suppose you have a web form that allows users to upload JPG, GIF or PNG images. Before you store the images in your system, you want to convert them all to the JPG format. Design an image converter API. Sketch out all classes and interfaces that are involved. Note: the actual code necessary to convert a JPG image to a GIF image is not the point. Just place a comment at the appropriate location where the actual conver sion should occur. PHP Design Patterns Object Oriented Programming Hard Object Oriented Concepts in PHP Define the following object oriented concepts: Class, object (and the difference between the two) Instantiation Method (as opposed to, say, a C function) Static methods and classes Destructor/finalizer Inheritance Encapsulation Multiple inheritance (and give an example) Abstract class Interface/protocol (and different from abstract class) Method overriding Method overloading (and difference from overriding) Polymorphism (without resorting to examples) Method visibility (e.g. public/private/other) PHP Language Features Object Oriented Programming Hard Overloading and Overriding in PHP Explain the difference between method overloading and method overriding PHP Language Features Object Oriented Programming Easy Describe the Singleton Design Pattern in PHP Describe the singleton design pattern and how you might use it in practice. Implement it. PHP Design Patterns Object Oriented Programming Easy Describe the Factory Design Pattern in PHP Describe the Factory design pattern and how you might use it in practice.

Implement it. PHP Design Patterns Object Oriented Programming Easy Design a card game system in PHP Design the schema or the classes to implement a library for building card games with. This library should make it easy to build games like Rummy, Poker, Hearts, Whist etc. Outline the implementation for two of the most important methods of the Deck cla ss. PHP Object Oriented Programming Data Modeling Easy DBA Google

You might also like