What is the output of the following code?
var_dump(boolval([]));
Which PHP function is used to validate whether the contents of $_FILES['name']['tmp_name'] have really been uploaded via HTTP?
Which of the following methods are available to limit the amount of resources available to PHP through php.ini? (Choose 2)
What is the output of the following code?
class a
{
public $val;
}
function renderVal (a $a)
{
if ($a) {
echo $a->val;
}
}
renderVal (null);
Which options do you have in PHP to set the expiry date of a session?
Please provide the value of the $code variable in the following statement to set an HTTP status code that signifies that the requested resource was not found.
http_response_code($code);
What types of HTTP authentication are supported by PHP? (Choose 2)
What will be the result of the following operation?
$a = array_merge([1,2,3] + [4=>1,5,6]);
echo $a[2];
The following form is loaded in a browser and submitted, with the checkbox activated:
<form method="post">
<input type="checkbox" name="accept" />
In the server-side PHP code to deal with the form data, what is the value of $_POST['accept'] ?
Which of the following is NOT a requirement for file uploads to work?