1.
What is the output of the following PHP code:
<?php
$y = 100;

function f($x) {
    $y = 100 + $x;
    return $y;
}

f(50);
echo $y;

?>
2.
In PHP, the session_start() function _______________________________.
3.
In PHP, the __construct function ________________________________.
4.
In PHP, the mysql_insert_id() function _________________________________.
5.
In PHP, the session data is stored in the __________________________ by default.
6.
Which of the following parameters is mandatory for defining a cookie in PHP?
7.
In PHP, what does the following function return:
headers_sent()
8.
In PHP, an opcode cache is used to _______________________________.
9.
In PHP, which is the best all purpose way to compare two strings?
10.
What is the output of the following PHP code:
<?php
$s = '12345';
$s[$s[1]] = '2';
echo $s;
?>