Home Videos Exercises MCQ Q&A Quiz E-Store Services Blog Sign in Appointment Payment

PHP Interview Questions And Answers

SOOPRO Pathshala provides PHP Interview Questions and Answers


1. What is PHP

PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.


2. Who is father of PHP?

Rasmus Lerdorf


3. When PHP was Developed?

It was developed in 1994.


4. What did the acronym PHP originally stand for?

Initially, PHP stood for Personal Home Page, but it now stands for the recursive acronym for PHP: Hypertext Preprocessor.


5. Which programming language is PHP similar to?

PHP is influenced by Perl and C. As such, PHP syntax resembles these languages.


6. What is the PHP scripting engine called?

PHP is powered by the scripting engine Zend Engine 2.


7. What is the main difference between PHP4 and PHP5?

PHP4 uses Zend Engine 1 and doesn't support the OOPs concept, while PHP5 supports the OOPs concept and uses Zend Engine 2.


8. Is PHP a case sensitive language?

Not fully. PHP is partly a case sensitive language where the variable names are case-sensitive but function names are not. Also, user-defined functions aren’t case sensitive but the rest of the language is.


9. What are the popular frameworks in PHP?

Some popular PHP frameworks are:

  • CodeIgniter
  • CakePHP
  • Symfony
  • Zend Framework
  • Yii 2

10. Name the popular Content Management Systems (CMS) in PHP.

  • WordPress
  • Joomla
  • Magento
  • Drupal

11. What is PEAR in PHP?

PEAR stands for PHP Extension and Application Repository and is an online repository of free, open-source PHP software packages. It was created as a centralized platform to manage, develop and distribute reusable PHP components.


12. What are the rules for naming a PHP variable?

Naming a variable in PHP is simple, but some rules must be followed. Variable names must begin with a letter or an underscore, followed by any number of letters, numbers, or underscores.