loop2 Please Wait...
DeveloperGang

What is Polymorphism?

It's simply the idea that one object can can take on many forms. So in PHP OOP one class "cars" may have two classes that extend it, for example a "Honda" class and a "BMW" class.

In a PHP class what are the three visibility keywords of a property or method?

public, private and protected. The default is public. Public -> Any class may instantiate the class and call the method or property. Protected -> Only the class itself or inher...

Write a program using while loop

$my_query = mysql_query("SELECT * FROM 'users' WHERE 'id'='1'; "); while($result = mysql_fetch_array($my_query)) { echo $result['First_name']; }

How to set cookies in PHP?

Setting new cookie ============================= Getting Cookie ============================= Updating Cookie ============================= Deleting Cookie =...

How to declare an array in php?

Just Follow the Below example::: Eg : var $arr = array('apple', 'grape', 'lemon');

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

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 recommended to us...

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

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 - for accessing databases. c. 5.3 - added name...

Explain how a PHP session works?

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 to select the corresponding session infor...

What are the different tables present in mysql?

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 as of MySQL 3.23.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga, aspernatur.