Which of the following functions are used to escape data within the context of HTML? (Choose 2)
Which of the following can NOT be used to send a cookie from within a PHP application?
Which of the following is correct? (Choose 2)
What information can be used to reliably determine the type of an uploaded file?
Which of the following may be used in conjunction with CASE inside a SWITCH statement?
What method can be used to find the tag
What is the output of the following code?
class Number {
private $v;
private static $sv = 10;
public function __construct($v) { $this->v = $v; }
public function mul() {
return static function ($x) {
return isset($this) ? $this->v*$x : self::$sv*$x;
};
}
}
$one = new Number(1);
$two = new Number(2);
$double = $two->mul();
$x = Closure::bind($double, null, 'Number');
echo $x(5);
Which class of HTTP status codes is used for server error conditions?
You want to access the 3rd character of a string, contained in the variable $test. Which of the following possibilites work? (Choose 2)
When uploading a file to a PHP script using the HTTP PUT method, where would the file data be found?