Appinventiv Php Developer Interview Questions

#1 Question

What is purpose of @ in Php ?

In PHP @ is used to suppress error messages.When we add @ before any statement in php then if any runtime error will occur on that line, then the error handled by PHP

#2 Question

What are the encryption functions available in PHP ?

crypt(), Mcrypt(), hash() are used for encryption in PHP

#3 Question

What is Cross-site scripting?

Cross-site scripting (XSS) is a type of computer security vulnerability typically found in web applications. XSS enables attackers to inject client-side script into web pages viewed by other users. A cross-site scripting vulnerability may be used by attackers to bypass access controls such as the same-origin policy.

#4 Question

How to find datatype of variable in PHP?

#5 Question

Difference between get and post method.

Some differences are:

It claims request parameter in URL StringIt claims request parameter in the request body
It is able to send a minute amount of dataIt is able to send a great amount of data
It can be cached and bookmarked.It is not able to cache and bookmarked
It is efficient for the view purposeIt is efficient for the update-purpose

#6 Question

What is Interface? Why it is used?


#7 Question

What is CSRF token and how will you add CSRF token in ajax?

#8 Question

What is Abstract class?

#9 Question

What is difference between Method overriding and overloading?

#10 Question

How to find length of an array in PHP ?

#11 Question

How to remove duplicate values from a PHP Array?

#12 Question

What is difference between strstr() and stristr() in PHP?


#13 Question

What is difference between Group by and order by clause?

#14 Question

How to find Second highest salary from a table ?

#15 Question

Explain Triggers and Stored Procedures?

#16 Question

What is difference between Inner vs Self vs Cross?

#17 Question

Do you know design patterns. List few?

#18 Question

What are the types of database engines available in MySQL?


#19 Question

What are the indexes in MySQL?

#20 Question

What is Type hinting in PHP ?

Ask a Question