PHP
PHP Interview Questions and Answers
Q1. What is diffrence between array_merge and array_combine
array_merge merges two or more arrays into a single array, while array_combine creates an array by using one array for keys and another for values.
array_merge merges arrays together, preserving numeric keys and reindexing the resulting array, while array_combine creates an array by using one array for keys and another for values
array_merge can merge multiple arrays together, while array_combine requires two arrays of equal length
Example: array_merge([1, 2], [3, 4]) returns [1...read more
Q2. What is diffrence between class and object
A class is a blueprint for creating objects, while an object is an instance of a class.
A class defines the properties and behaviors of objects, while an object is a specific instance of a class.
Classes can be thought of as templates, while objects are the actual instances created from those templates.
Multiple objects can be created from the same class, each with its own unique set of properties and behaviors.
Classes can have inheritance, allowing them to inherit properties an...read more
Q3. what is php and uses of php
PHP is a server-side scripting language used for web development.
PHP stands for Hypertext Preprocessor.
It is commonly used to create dynamic web pages.
PHP can interact with databases, manage sessions, and handle forms.
Popular websites like Facebook and WordPress are built using PHP.
PHP Jobs
Interview experiences of popular companies
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month