PHP Interview Questions
Hypertext Preprocessor, better known as PHP, is a largely used scripting language by the developers to create and design web pages. A PHP developer is a person, who continually customizes and designs the websites using the technical aspects of PHP.
Following are the interview questions that can be asked to a Microsoft PHP developer.
- Explain what the term CAPTCHA stands for and what is it used for?
- Do we pass objects by reference or by value?
- Define constant.
- Differentiate between htmlspecialchars() and htmlentities().
- Is a PHP session stored on the server side or the client side?
- What is a PHP Filter?
- What are the functions of Validating Filters?
- What are the functions of Sanitizing Filters?
- Can you explain what htaccess is?
- Does PHP support Inheritance? Does it support multilevel inheritance or multiple inheritances? Justify your answer.
- Without using the submit button, is it possible to submit a form?
- Is it possible to upload videos using PHP and MySQL?
- What does SPL stand for? For what purpose is the SPL used?
- Does PHP support strings that can be used with single or double quotes? Explain.
- What are Return URL and Notify URL? What is the difference between the two of them?
- Is there a difference between mysql_pconnect and mysql_connect? Which one of them utilizes less resources, and why?
- How can you create sub domains?
- What are cookies? How is it useful?
- Can you create cookie values using PHP?
- What can be done to prevent form hijacking in PHP?
- Explain what Explode is.
- How will you define Split?
- State the difference between Explode and Split.
- What are conditional statements? How does it serve in coding?
- What is an ODBC connection? What is it used for?
- How to create an ODBC connection? How do we close an ODBC connection?
- How to get an IP address with the help of PHP?
- State the differences between include and require.
- Explain he difference between print and printf.
- What is an error checking code? Why is it used?
- How will you explain Exception? What is the use of Exception?
- Can you elaborate on the Try, Throw and Catch functions?
- Could you mention a few rules for Exceptions?
- Through PHP, is it possible to add multiple categories? How would you do it?
- What is an Inline Style?
- How do you differentiate between a print statement and echo?
- Can you tell us something about Arithmetic operators, Assignment Operators, Logical Operators and Comparison Operators?
- What are the different looping systems in PHP?
- What is the difference between for loops and foreach loops?
- What are the uses of variables in PHP?
- What are Arrays? What are the three kinds of Arrays?
- Which function do we use to open a file in PHP?
- What is the feof() function used for?