Logo

Php Questions Set 27:

Quiz Mode

Which of the following is not the scope of Variable in PHP? 

1
2
3
4

Solution:

 What is the default time(in seconds) for which session data is considered valid? 

1
2
3
4

Solution:

The default value of the max_execution_time directive is ____.

1
2
3
4

Solution:

Which PHP function is used to determine whether a class exists?

1
2
3
4

Solution:

What will be the output of the following PHP code?


$var1 = "foo";

$var1("will this work");

1
2
3
4

Solution:

The function ______ returns a specified service's port number.

1
2
3
4

Solution:

A function in PHP that starts with __ (double underscore) is known as

1
2
3
4

Solution:

What will be the output of the following PHP code?


<?php

$str = "Hello World";

echo wordwrap($str, 5, "
\n");

?>

1
2
3
4

Solution:

 Which of the following PHP function will return true if a variable is an array or false if it is not an array? 

1
2
3
4

Solution:


What is the output of the following PHP code ?


<?php

    $a = array("a" => "Maseratti", "b" => "Audi", 

         "c" => "Land Rover", "d" => "Jaguar");

    echo array_search("Audi", $a);

?>

1
2
3
4

Solution: