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 z($x) {
return function ($y) use ($x) {
return str_repeat($y, $x);
};
}
$a = z(2);
$b = z(3);
echo $a(3) . $b(2);
Given a JSON-encoded string, which code sample correctly indicates how to decode the string to native PHP values?
What SimpleXML function is used to parse a file?