1.
In PHP, the startOverlays() function is used to ____________________.
2.
The following PHP code is used to print the elements of an array using the foreach loop. Complete the code by using the correct options:
$items=array("one","two","three");
______($items __ $item) {
echo___."
";
3.
What is the output of the following PHP code:
<?php
function func($arg) {
    $result = 0;
    for ($i = 0; $i < $arg; $i++) {
        $result = $result + $i;
    }
    return $result;
}
echo func(5);

?>
4.
In PHP, which of the following is denoted by $_SERVER?
5.
What is the output of the following PHP code:
<?php $num1 = 56;
function my_func() {
$num1 = 89;
echo $num1;
}
my_func();
?>
6.
Which of the following syntaxes corresponds to the associative array in PHP?
7.
According to the following PHP code, which of the following statements is displayed in the browser:
<?php
$array[0] = "the mall";
$array[1] = "David";
$array[2] = "brother";
$array[3] = "the store";
$array[4] = "Rob";
echo $array[1]," went to ",$array[3];
?>
8.
In PHP, which of the following functions is used to return the time of the sunrise for a particular day or location?
9.
What is the output of the following PHP code:
<?php
$Var = substr("abcdef", -4, 1);
echo $Var
?>
10.
In PHP, which of the following PCRE regular expressions is similat to the string 'php|architect'?