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

How we can retrieve the data in the result set of MySQL using PHP?

1. mysql_fetch_row This function will return a row where the values will come in the order as they are defined in the SQL query, and the keys will span from 0 to one less than the...

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']; }

what types of loops exist in php?

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 - loops through a block of code on...

What is Open Source Software?

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 that adhere with the...

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

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

What is the difference between Session and Cookie?

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 file format. Cookies ca...

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');
Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga, aspernatur.