Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 536 Bytes

0714.md

File metadata and controls

24 lines (20 loc) · 536 Bytes

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