How PHP Reverse Number Program Works?
It is very easy to reverse a number using PHP string function strrev(). But here i will show you without using strrev() function. crayon-628eda76e16ad893063577/ Output: 54151
Create a chess board using for loop php
In this Post we will create a chessboard pattern, an 8×8 grid of black and white squares like this: Use table width=”270px” and take 30px as …
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 …
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 …
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 can put …
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 …
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 …
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 …
Write a program using while loop
crayon-628eda76e1f4a186621576/
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 – …
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 …