PHP Web Development Interview Questions And Answers Prepared By Me Of Saanvi Swarn Technology For Freshers Based On Basic PHP Concepts(Part 1)
PHP Web Development Interview Questions And Answers Prepared By Me Of Saanvi Swarn Technology For Freshers Based On Basic PHP Concepts(Part 1)
Q1. What is PHP? (Explain it's purpose and how it works)
Ans: PHP is a Hypertext Preprocessor widely used open-source server-side scripting language designed for web development.
PHP's main purpose is to enable the creation of dynamic web pages as well as web applications.
PHP works on processing client request on the server, generating dynamic HTML contents, and sending it back to the client's browser.
Q2. What is the difference between static and dynamic websites?
Ans: Static Websites - Static Websites are fixed, pre-defined content delivered directly from the server. Static Websites are easier to create and maintain. For ex. : Blogs, Portfolios, etc.
Dynamic Websites - Dynamic Websites are generated dynamically based on user interactions, data, or other factors. Dynamic Websites offer more flexibility and interactivity. For ex. : E-commerce sites, web applications, online banking, social media platforms.
Q3. Is PHP case-sensitive?
Ans: Yes, PHP is a case-sensitive language. But user-defined variable names are case-sensitive whereas function names are not case-sensitive.
Q4. What are the rules for naming PHP variable?
Ans: In PHP, variables are denoted by the $ symbol, followed by the name of the variable.
For ex. :
$i = 10;
$j = "Ayan";
Comments
Post a Comment