- What are your thoughts on TDD (Test Driven Development)?
- What coding standards do you follow (code formatting, unit testing, and any tools used like CI, PHPMD, etc)? What tool(s), if any, do you use to debug?
- Are you familiar with PHPDoc/JavaDoc standards?
- What is SQL injection? Please provide a code example that allows SQL injection and two ways that you can fix it using either mysqli or PDO.
- What data type is the following unfiltered query parameter:
index.php?page_id=3
What data type is $_GET['page_id']
? How would you change this to another data type?
- What will the following return (indicate true or false):
var_dump('1' == 1); // true/false?
var_dump('1' === 1); // true/false?
var_dump(1 === 1); // true/false?
var_dump(1 == 1); // true/false?
- What are multi-dimensional arrays?
- Do you have any experience in presentational frameworks (Smarty, Twig, etc)?
- OOP: In the most basic terms, what is the difference between public, private, and protected methods and properties?
- OOP: What is an abstract class? How are traits different than abstract classes?