Ask your Question

Write to us

Ask Question

PHP Programming Questions

Write a program to print Factorial of any number

See Answer

Write a program in PHP to print Fibonacci series . 0, 1, 1, 2, 3, 5, 8, 13, 21, 34

See Answer

Write a program to find whether a number is Armstrong or not

See Answer

Write a program to print Reverse of any number

See Answer

To check whether a number is Prime or not.

See Answer

Write a program to print Fibonacci series

See Answer

Write a program to find HCF of two numbers

See Answer

Program to find whether a year is LEAP year or not

See Answer

Program to print the below format
* * * * * * * * * * * * * * *
* * * * * * * * * * * * *
* * * * * * * * * * *
* * * * * * * * *
* * * * * * *
* * * * *
* * *
*

See Answer

Program to print below format.
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7
1 2 3 4 5 6
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1

See Answer

Program to print below format
*
* *
* * *
* * * *
* * * * *
* * * * * *
* * * * * * *
* * * * * * * *
* * * * * * * * *

See Answer

Write a program to print below format
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 4 5 6
1 2 3 4 5 6 7
1 2 3 4 5 6 7 8

See Answer

Write a program to find factor of any number

See Answer

Write a program to find table of a number

See Answer

Write a Program for finding the biggest number in an array without using any array functions.

See Answer

Write a Program to swap two numbers in PHP.

See Answer

Write a Program for Bubble sorting in PHP

See Answer

Write a Program for finding the smallest number in an array

See Answer

Write a program to print the below format :
1 5 9
2 6 10
3 7 11
4 8 12

See Answer

Write a program for this Pattern:
*****
*      *
*      *
*      *
*****

See Answer

How to print this Pattern:
*0
***00
******000
**********0000
***************00000

See Answer

How to write a Floyd's Triangle?
1
23
456
78910
1112131415

See Answer

Write a program to make a chess:

See Answer

how to print following table as Output:

See Answer

How to print following number table:

See Answer

What would be the output of following:
$a = '1';
echo $b = &$a;
echo $c = "2$b";

See Answer

What would be the output of the following?
var_dump(0123 == 123);
var_dump('0123' == 123);
var_dump('0123' === 123);

See Answer

What will be the output of the following:
$x = ture and false;
var_dump($x);

See Answer

What would be the output of following:
$array = array(
1 => "a",
"1" => "b",
1.5 => "c",
true => "d",
);
print_r($array);

See Answer

Write a program to concatenate two strings character by character. e.g : JOHN + SMITH = JSOMHINTH

See Answer

Program to find the LCM of two numbers.

See Answer