loop2 Please Wait...
DeveloperGang

Create a chess board using for loop php

chess.jpg
In this Post we will create a chessboard pattern, an 8x8 grid of black and white squares like this: Use table width="270px" and take 30px as cell height and width. Check...

What is the difference between single quotes and double quotes?

Single quoted strings will display things almost completely "as is." Variables and most escape sequences will not be interpreted. Double quote strings will display a host of es...

What is the Scope Resolution Operator?

"::" double colons is the scope operator it is used to call methods of a class that has not been instantiated. You should also understand static methods and how they differ from re...

How do you load classes in PHP?

Review the "autoload" and "spl_autoload_register" function (note:you should use the later). The autoload function basically triggers a function when a class is instantiated, you c...

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