This is a basic PHP program which describes PHP Program of finding nth Delannoy Number. Below examples will help you in the better understanding of the basic concept of PHP programming language.
We are using the if…else statement to determine the number of the days in a current month. Copy the below code and execute it with the help of PHP compiler.
* PHP Program to add two numbers without using arithmetic operator
function Add( $x, $y)
// Iterate till there is no carry
while ($y != 0)
// carry now contains common
//set bits of x and y
$carry = $x & $y;
// Sum of bits of x and y where at
//least one of the bits is not set
$x = $x ^ $y;
$y = $carry << 1;
// function calling
echo Add(15, 32);
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.