<<< Previous question <<< Question ID#0515.md >>> Next question >>>
What would you replace at line 2 // ??? with, below, to make the string 'Hello, World!' be displayed?
function myfunction() {
// ???
print $string;
}
myfunction("Hello, World!");- A) list($string) = func_get_args();
- B) $string = func_get_arg(0);
- C) $string = get_function_args()
- D) $string = $argv[1];
Answer
Answer: A, B