Hello users, Today we are going to know few interview question on PHP, which may be useful to track your interview and get your dream job.
These PHP Questions have been designed based on my personal interviews which i was questioned.
These Questions are a mix of PHP, JQuery & API also are sutiable for freshers, 1 year, 2 years or more experienced people.So lets go ahead and take a look.
These questions include both Core PHP & Framework.
- Difference between OOPS & Procedural Programming Language.
- What is a constructor?
- What are magic methods?
- Is PHP Compiled or Interpreted?
- Final Keyword.
- Difference between Method overriding & overloading.
- What are variables variable.
- Difference between Single & double quotes.
- Difference between echo & print.
- Which is faster echo or print & why?
- What are the different types of arrays we have?
- Difference between Numeric & associative array.
- Mention 5 array functions & explain.
- Difference Between explode & implode.
- What is the function we use to exit from script?
- What is the function we use to delete a file or image using PHP?
- Difference between include & require.
- What is the function used to count total number of array elements?
- How do you declare constants in PHP?
- What are the different types of errors in PHP? Explain.
- Difference between SESSION & COOKIES.
- Can we use SESSION without COOKIES?
- Difference between PHP 5.6 & 7.
- What is the default controller in Codeigniter?
- What is .htaccess?
- What is MVC?
- How do you call constructor in Codeigniter?
- Do we use inheritance in Codeigniter?
- What is __constructor?
- What is $this?
- If i=0 print i=1 & if i=1 print i=0 without using if condition.
- Which is faster if OR switch?
- Routing in PHP?
- Difference between POST & GET
- What are indexes?
- How do you optimize query?
- Primary & unique key.
- Difference between truncate & drop.
- Different datatypes in MYSQL.
- Difference between CHAR & VARCHAR.
- What is SQL injection?
- Difference between LIMIT 10 & LIMIT 10 11?
- Find the second highest salary.
- How do you create indexes in MYSQL?
- What happens if i Set a column with varchar (50) and inputed 100 characters of data?
- Different types of JOINS.
- Difference between LEFT & RIGHT Join.
- Write a query to create a table.
- Write a query to JOIN two tables.
- How do you connect PHP with MYSQL?
- What is API?
- How do you authenticate API?
- How do you call an API?
- What are headers in API?
- What is Body in API?
- What is Postman?
- What are the different Request methods in API?
- What are POST,GET,PUT & DELETE in API?
Hope these questions help you crack your interview.All the best. If you like the article do share with your friends and colleagues which are looking for a job change.
For more updates:
Follow us on our Facebook page :
Do Follow my Instagram page for more updates :