Here are the General PHP interview questions will ask in an interview If you are expert in php want to rate your skills, you can attend PHP MockTest 1) What is PHP? It is also used to develop web applications. 2) What are the features of PHP? Platform Independent 4) What are the popular Content Management Systems in PHP? Drupal CodeIgniter Laravel Erh etc By using const() 1) Compound types array integer NULL 8) How many types of an array are there in PHP? Types of an array in PHP are: Associative array 9) Write some PHP functions count() array() sort() array_search() array_intersect() array_chunk() array_reverse() array_change_key_case() count() 10) What are the string functions used in PHP ? PHP string functions: strrev() ucwords() ucfirst() lcfirst() strtolower() strtoupper() strlen() 11) How many types of operators are there in PHP? Types of PHP operators: Bitwise Operators Execution Operators Assignment Operators Array Operators Arithmetic Operators String Operators Logical Operators Comparison Operators 14) what types of loops exist in php? Types of loops in PHP are: while do while foreach 15) Does PHP support multiple databases? 16) What are the protocols supported by PHP? 17) What are the characteristic of PHP? Simplicity 19) What are the components while develop and run web pages? Web server 20) What is the use count () functions in PHP? 21) What is the use of isset() function? 22) How many types of an array in PHP? Indexed array
PHP is an object-oriented scripting language, open-source, interpreted, and executed at the server-side.
Features of PHP are:
Fast Performance
Compatibility
Open Source
Embedded
3) What was the old name of PHP?
Personal Home Page is the old name of PHP.
The popular Content Management System in PHP are:
Joomla
WordPress
Magento
5) What are the types of frameworks used in PHP?
PHP frameworks are:
Symfony
CakePHP
Zend Framework
Yii 2
6) What are the ways to define a constant in PHP?
There are two ways to define a constant in PHP are:
By using define()
7) How many data types are there in PHP?
There are three types of data types used in PHP are:
object
2) Scalar types
float
string
boolean
3) Special types
resource
Multidimensional array
Indexed array
array()
sort()
array_search()
array_intersect()
array_chunk()
array_reverse()
array_change_key_case()
strlen()
strrev()
ucwords()
ucfirst()
lcfirst()
strtolower()
strtoupper()
Comparison Operators
Bitwise Operators
Execution Operators
Assignment Operators
Array Operators
Arithmetic Operators
String Operators
Logical Operators
for
Yes PHP supports multiple languages like MySQL, PostgreSQL, Oracle, Sybase and many more.
There are various protocols supported by PHP like POP3, IMAP, LDAP etc.
The characteristics of PHP are given below:
Efficiency
Security
Flexibility
Familiarity
18) What is the common tag while using PHP?
The common tag while using PHP is:
There are three components while develop and run web pages.
Database
PHP Parser
IN PHP, count function is used to count the total elements of an array.
The isset() function is used to check the variable that define or not and not null.
In PHP, there are three types of array that are given below:
Associative array
Multidimensional array
23) What are the methods to submit the form in PHP?
There are two methods to submit the form in PHP that are GET and POST
Article Contributed By :
|
|
|
|
542 Views |