Category: PHP Interview Questions

php interview questions

PHP is a server-side scripting language used for web development. RASMUS LERDORF is the father of PHP. PHP 5 and the above php 5 versions works with MySQLi (Database Management System). here i Stands for ** Improved **.

PhpPHP Interview Questions

How to create a session? How to set a value in session ? How to Remove data from a session?

by:

Create session : session_start(); Set value into session : $_SESSION’USER_ID’=1; Remove data from a session : unset($_SESSION’USER_ID’;

GeneralPhpPHP Interview Questions

How to set cookies in PHP?

by:

Setting new cookie ============================= crayon-61afc9150ec7c208801436/ Getting Cookie ============================= crayon-61afc9150ec85603974949/ Updating Cookie ============================= Deleting Cookie ============================== crayon-61afc9150ec87578495813/

GeneralPhpPHP Interview Questions

What is the difference between Session and Cookie?

by:

The main difference between sessions and cookies is that sessions are stored on the server, and cookies are stored on the user’s computers in the text …

GeneralPhpPHP Interview Questions

How to declare an array in php?

by:

Just Follow the Below example::: crayon-61afc9150f1c6976273520-i/

GeneralPhpPHP Interview Questions

require_once(), require(), include().What is difference between them?

by:

require() includes and evaluates a specific file, while require_once() does that only if it has not been included before (on the same page). So, require_once() is …

GeneralPhpPHP Interview Questions

What are some of the big changes PHP has gone through in the past few years?

by:

There are a number, but the big ones people are looking for are: a. PHP 5.0 realised the object model (AKA OOP). b. 5.1 added PDO …

GeneralPhpPHP Interview Questions

Explain how a PHP session works?

by:

A PHP session cookie is set in the clients browser, on every request the client sends that cookie to the server. PHP then uses that cookie …

GeneralMysqlPhpPHP Interview Questions

GeneralMysqlPhpPHP Interview Questions

What are the different tables present in mysql?

by:

Total 5 types of tables we can create 1. MyISAM 2. Heap 3. Merge 4. InnoDB 5. ISAM 6. BDB MyISAM is the default storage engine …

GeneralOopsPhpPHP Interview Questions

In PHP what is the difference between a Class and an Interface?

by:

Interfaces do not contain business logic, only method signatures that define a template that any classes implementing the interface must contain. Lets take an auto mobile …

GeneralPhpPHP Interview Questions

Who is the father of php and explain the changes in php versions?

by:

Rasmus Lerdorf for version changes go to http://php.net/ Marco Tabini is the founder and publisher of php|architect.