Question:- What is PEAR in PHP?
Answer:- 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.
Question:- Who is known as the father of PHP?
Answer:- Rasmus Lerdorf
Question:- What was the old name of PHP?
Answer:- The old name of PHP was Personal Home Page.
Question:- What is the name of scripting engine in PHP?
Answer:- The scripting engine that powers PHP is called Zend Engine 2.
Question:- Explain the difference between PHP4 and PHP5.
Answer:- PHP4 doesnt support oops concept and uses Zend Engine 1. PHP5 supports oops concept and uses Zend Engine 2.
Question:- What are the popular Content Management Systems (CMS) in PHP?
Answer:- 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).
Question:- What are the popular frameworks in PHP?
Answer:- CakePHP, CodeIgniter, Yii 2, Symfony, Zend Framework etc.
Question:- Which programming language does PHP resemble to?
Answer:- PHP has borrowed its syntax from Perl and C.
Question:- List some of the features of PHP7.
Answer:- Scalar type declarations, Return type declarations, Null coalescing operator (??), Spaceship operator, Constant arrays using define(), Anonymous classes, Closure::call method, Group use declaration, Generator return expressions, Generator delegation, Space ship operator
Question:- What is "echo" in PHP?
Answer:- PHP echo output one or more string. It is a language construct not a function. So the use of parentheses is not required. But if you want to pass more than one parameter to echo, the use of parentheses is required.
Question:- What is "echo" Syntax in PHP?
Answer:- void echo ( string $arg1 [, string $... ] )
Question:- What is "print" in PHP?
Answer:- PHP print output a string. It is a language construct not a function. So the use of parentheses is not required with the argument list. Unlike echo, it always returns 1. Syntax: int print ( string $arg)
Question:- What is the difference between "echo" and "print" in PHP?
Answer:- Echo can output one or more string but print can only output one string and always returns 1. Echo is faster than print because it does not return any value.
Question:- How a variable is declared in PHP?
Answer:- A PHP variable is the name of the memory location that holds data. It is temporary storage. Syntax: $variableName=value;
