Skip to content
Below are some of the technical questions expected in OOP – PHP interview.
- What is PHP, and what are its features?
- What is the difference between PHP4 and PHP5?
- What is the latest version of PHP, and what are its new features?
- How can you enable error reporting in PHP?
- What are the different types of errors that can occur in PHP?
- How can you connect to a MySQL database in PHP?
- What is the difference between include() and require() functions in PHP?
- How can you set and get cookies in PHP?
- What is the difference between session and cookie in PHP?
- What is the use of the header() function in PHP?
- What is the use of the isset() function in PHP?
- What is the difference between GET and POST methods in PHP?
- What is the use of htmlentities() function in PHP?
- How can you upload a file in PHP?
- What is the use of addslashes() function in PHP?
- How can you prevent SQL injection in PHP?
- What is the use of explode() function in PHP?
- What is the use of implode() function in PHP?
- What is the use of count() function in PHP?
- What is the use of array() function in PHP?