What is the output of the following code? function increment ($val) { $val = $val + 1; } $val = 1; increment ($val); echo $val;
Which PHP function sets a cookie and URL encodes its value when sending it to the browser?
What is the output of the following code? function increment ($val) { $_GET['m'] = (int) $_GET['m'] + 1; } $_GET['m'] = 1; echo $_GET['m'];
What is the name of the key for the element in $_FILES['name'] that contains the provisional name of the uploaded file?
Which SPL class implements fixed-size storage?
Which PHP function is used to validate whether the contents of $_FILES['name']['tmp_name'] have really been uploaded via HTTP, and also save the contents into another folder?
Which PHP function sets a cookie whose value does not get URL encoded when sending it to the browser?
What is the output of the following code? class Number { private $v = 0; public function __construct($v) { $this->v = $v; } public function mul() { return function ($x) { return $this->v * $x; }; } } $one = new Number(1); $two = new Number(2); $double = $two->mul()->bindTo($one); echo $double(5);