What is the return value of the following code?
strpos("me myself and I", "m", 2)
Given the following code, what is correct?
function f(stdClass &$x = NULL) { $x = 42;
}
$z = new stdClass;
f($z);
var_dump($z);
What is the name of the PHP function used to automatically load non-yet defined classes?
What will be the output of the following code?
$a = array(0, 1, 2 => array(3, 4));
$a[3] = array(4, 5);
echo count($a, 1);
What is the result of the following code?
define('PI', 3.14);
class T
{
const PI = PI;
} class Math
{ const PI =
T::PI;
} echo Math::PI;