What is the output of the following code?
What is the output of the following code? function ratio ($x1 = 10, $x2) { if (isset ($x2)) {
return $x2 / $x1; } } echo ratio (0);
Which of the following is NOT a valid function declaration?
Which of the following is NOT a valid function declaration?
What is the output of the following code?
What is the output of the following code? function increment (&$val) { return $val + 1; } $a =
1; echo increment ($a); echo increment ($a);
Which of the following is true about stream contexts?
Which of the following is true about stream contexts? (Choose 2)
What can be said about the call to file_get_contents?
Consider the following code. What can be said about the call to file_get_contents? $getdata
= “foo=bar”; $opts = array(‘http’ => array( ‘method’ => ‘POST’, ‘header’ => ‘Content-type:
application/x-www-form-urlencoded’, ‘content’ => $getdata ) ); $context =
stream_context_create($opts); $result = file_get_contents(‘http://example.com/submit.php’,
false, $context);
What function can be used to retrieve an array of current options for a stream context?
What function can be used to retrieve an array of current options for a stream context?
what are valid ways to make sure all file_get_contents calls send a certain user agent string?
When retrieving data from URLs, what are valid ways to make sure all file_get_contents
calls send a certain user agent string? (Choose 2)
What will an opcode cache ALWAYS automatically improve?
What will an opcode cache ALWAYS automatically improve?
What is cached by an opcode cache?
What is cached by an opcode cache?
Which php.ini setting is usually required to use an opcode cache?
Which php.ini setting is usually required to use an opcode cache?