Home >> Top 210+ PHP Interview Questions and Answers in 2022

Top 210+ PHP Interview Questions and Answers in 2022

PHP (Hypertext Preprocessor) is a open source programming language. It was created by Rasmus Lerdorf in 1994 for dynamic, interactive websites.

Used

1-Cross platform or Platform Independent-Most php code can be processed without alteration on computers running many different operating systems.Example- A PHP script that run on linux generally also runs well on windows.
2-HTML embeded-PHP code can be written in files containing a mixture of php instructions and HTML code.
3-Server side-The PHP program are run on a server specifically a webserver.
4-Webscripting language-PHP program run via a webbrowser.

Advantage
1)-PHP is open source and free of cost. 
2)-PHP is platform independent & applications can run on any Operating system like UNIX, Linux, Mac and Windows, etc. 
3)-It is more stable.
4)-It has powerful library support to use various function modules for data representation. 
5)-PHP application can easily be loaded & connected to database.

Disadvantage
1)-It is not secure because it is open source.
2)-It is losely data type language.
3)-Not suitable for giant web application development.
4)-Poor framework
5)-Poor performance

1 - PHP full form and history?
2 - How to Install XAMPP & Simple program?
3 - How can we know the number of days between two given dates?
4 - What is the difference between $message and $$message?
5 - What Is a Cookie?
6 - What Is a Persistent Cookie?
7 - What does a special set of tags do?
8 - What are tags type?
9 - How do you define a constant?
10 - How To Write the FORM Tag for Uploading Files?
11 - What is the difference between include, include_once?
12 - What is the difference between require and require_once?
13 - What is difference between include_once and require_once?
14 - What is difference between include and require?
15 - What is meant by urlencode and urldecode?
16 - How To Get the Uploaded File Information?
17 - Would I use print "$a dollars" or "{$a} dollars" to print out the amount of dollars?
18 - How do you pass a variable by value?
19 - How do I find out the number of parameters passed into function?
20 - How To Protect Special Characters in Query String?

Copyright ©2022 coderraj.com. All Rights Reserved.