Category: Php

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 **.

GeneralPhpPHP Interview Questions

Write a program using while loop

by:

crayon-61afc8e949cbd195093422/

PhpPHP Interview Questions

what types of loops exist in php?

by:

In PHP, we have the following looping statements: while – loops through a block of code as long as the specified condition is true do…while – …

PhpPHP Interview Questions

What is Open Source Software?

by:

Software in which the source codes are freely used, modify, and shared by anyone are called Open Source Software. These can also be distributed under licenses …

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-61afc8e94a381063607597/ Getting Cookie ============================= crayon-61afc8e94a386059031413/ Updating Cookie ============================= Deleting Cookie ============================== crayon-61afc8e94a388266632913/

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-61afc8e94a553904947994-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