Logo

Php Questions Set 16:

Quiz Mode

How many main types of filtering are present in PHP?

1
2
3
4

Solution:

What will be the output of the following PHP code?

1
2
3
4

Solution:

Which function is used to read a file into an array?

1
2
3
4

Solution:

Which PHP function can accept any number of parameters?

1
2
3
4

Solution:

 Where session_start() function must appear in PHP? 

1
2
3
4

Solution:

The right way to define a constant is?

1
2
3
4

Solution:

What will be the output of the following PHP code?

for ($x = 0; $x <= 10; print ++$x)
{ print ++$x; }

1
2
3
4

Solution:

  Which of the following is the right way to use the DateTime class?

1
2
3
4

Solution:

 Which one of the following statements can be used to select the database? 

1
2
3
4

Solution:

 What will be the output of the following PHP code?


<?php

    $title = "O'malley wins the heavyweight championship!";

    echo ucwords($title);

    ?>

1
2
3
4

Solution: