1. What is PHP? 2. What is an abstract class? or by giving an example they ask what is it called? 3. What Is a Session in PHP? 4. Explain the difference between $message and $$message? 6. What is method/function overloading and overriding? 7. How to set cookies in PHP? 8. What is the difference between include and require? 9. What is the difference between a framework, IDE, CMS, Blog? 10. What is the difference between $var and $$var?
I don't think a job is going to ask you this silly question. Odds are if you are interviewing for a PHP Programming job you obviously know what it means. I know GOOD PHP Programmers, including myself, that don't waste their time using "PHP Sessions". If someone was to ask me this question I would assume THEY were a horrible programmer. Creating dynamic variables using $$var is considered TERRIBLE practice. All of which don't even relate. This question would never be asked. Why would that question be re-asked twice?
Since the questions aren't valid when it comes to programming or to PHP, they're not valid no matter where you're getting your candidates from.
I am new but try to answer. 1. What is PHP? -php hypertext preprocessor,an open source language developed by rasmus lerdorf,for building dynamic and interective website. 3. What Is a Session in PHP? - it' a Valaria,it define the state of current session. 7. How to set cookies in PHP? -you can set it by stecookies(),or cookies destroy.
A employer wouldn't ask PHP specific questions. I know from first hand experience they would ask questions relating to programming practices, such as OOP. One common question for potential employees is: "Name the fundamental elements of OO programming/design". Which are, of course: 1. Inheritance 2. Polymorphism 3. Encapsulation 4. Abstraction There are more of course, however a formalised list does not yet exist. Woop, for rhyme
if the employer is a reputed company definitely they are not going to ask these silly questions as pointed out by above posters. questions would be more on your experience, projects, programming practices and latest trends.