PHP Interview Question Set 1

Categories: PHP

What is PHP?

PHP stands for Hypertext Preprocessor. It is an open source server-side scripting language which is widely used for web development. It supports many databases like MySQL, Oracle, Sybase, Solid, PostgreSQL, generic ODBC etc.



What is PEAR in PHP?

PEAR is a framework and repository for reusable PHP components. PEAR stands for PHP Extension and Application Repository. It contains all types of PHP code snippets and libraries.

It also provides a command line interface to install "packages" automatically.


Who is known as the father of PHP?

Rasmus Lerdorf



What was the old name of PHP?

The old name of PHP was Personal Home Page.


Explain the difference b/w static and dynamic websites?

  1. In static websites, content can't be changed after running the script. You can't change anything on the site. It is predefined.
  2. In dynamic websites, content of script can be changed at the run time. Its content is regenerated every time a user visit or reload. Google, yahoo and every search engine is the example of dynamic website.


 What is the name of scripting engine in PHP?

The scripting engine that powers PHP is called Zend Engine 2.


Explain the difference between PHP4 and PHP5.

  • PHP4 doesn't support oops concept and uses Zend Engine 1.

  • PHP5 supports oops concept and uses Zend Engine 2.


What are the popular Content Management Systems (CMS) in PHP?

WordPress: WordPress is a free and open-source content management system (CMS) based on PHP & MySQL. It includes a plug-in architecture and template system. It is mostly connected with blogging but supports another kind of web content, containing more traditional mailing lists and forums, media displays, and online stores.

Joomla: Joomla is a free and open-source content management system (CMS) for distributing web content, created by Open Source Matters, Inc. It is based on a model-view-controller web application framework that can be used independently of the CMS.

Magento: Magento is an open source E-trade programming, made by Varien Inc., which is valuable for online business. It has a flexible measured design and is versatile with many control alternatives that are useful for clients. Magento utilizes E-trade stage which offers organization extreme E-business arrangements and extensive support network.

Drupal: Drupal is a CMS platform developed in PHP and distributed under the GNU (General Public License).



What are the popular frameworks in PHP?

  1. CakePHP
  2. CodeIgniter
  3. Yii 2
  4. Symfony
  5. Zend Framework etc.


List some of the features of PHP7.

  1. Scalar type declarations
  2. Return type declarations
  3. Null coalescing operator (??)
  4. Spaceship operator
  5. Constant arrays using define()
  6. Anonymous classes
  7. Closure::call method






Top Blogs
PHP freshers Interview Questions PHP Interview Questions and Answers for Freshers & Experienced Published at:- PHP Tutorial From beginner Published at:- PHP Interview Question Set 1 Published at:- PHP Interview Question Set 3 Published at:- PHP Interview Question Set 4 Published at:- PHP Interview Question Set 6 Published at:- PHP Interview Question Set 7 Published at:- PHP Interview Question Set 8 Published at:- PHP Interview Question Set 9 Published at:- Top 5 PHP Structures Published at:- 8 Motivations To pick Php web Advancement for IT Business Published at:-
R4R.co.in Team
The content on R4R is created by expert teams.