<<< Previous question <<< Question ID#0714.md >>> Next question >>>
What is the output of the following code:
function myFunc() {
$in = "nothing";
return func_get_args();
}
$in = "something";
var_dump(myFunc($in));
- A) array(1) { [0]=> string(9) "something" }
- B) array(1) { [0]=> string(9) "nothing" }
- C) Warning: function myFunc expects 0 parameters, 1 given
- D) Array
Answer
Answer: A