Which of the following expressions will evaluate to a random value from an array below?
$array = array("Sue","Mary","John","Anna");
What function can be used to retrieve an array of current options for a stream context?
When a query that is supposed to affect rows is executed as part of a transaction, and reports no affected rows, it could mean that: (Choose 2)
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);
After performing the following operations:
$a = array('a', 'b', 'c');
$a = array_keys(array_flip($a));
What will be the value of $a?
Which of the following code snippets DO NOT write the exact content of the file "source.txt" to "target.txt"? (Choose 2)