1.
In PHP, which of the following functions is used to remove white spaces from the beginning and the end of a string?
2.
The PHP session is started by _________________.
3.
What is the output of the following PHP code:
<?php
$k = 0;
for ($k)
{
print $k;
}
?>
4.
What is the output of the following PHP code:
<?php
$a = 10;

function fn() {
    $a = 20;
}
Fn();
echo $a;

?>
5.
In PHP, which of the following commands is used to strip the extension of a filename?
6.
Which of the following commands is used to complete this PHP code and return In A as the output:
<?php

class A {
    function x() {
        echo "In A";
    }
}
class B {
    function getA() {
        return new A();
    }
}
$b = new B();

?>
7.
In PHP, which of the following statements is true?
8.
What does $section contain when the following PHP code is executed:
<?
$section = file_get_contents('./people.txt', NULL, NULL, 20, 14);
?>
9.
What does $section contain when the following PHP code is executed:
<?
$section = file_get_contents('./people.txt', NULL, NULL, 20, 14);
?>
10.
In PHP, what does the stream_get_transports() function return?