<<< Previous question <<< Question ID#0726.md >>> Next question >>>
What happens when you run the script below ?
$language = 'PHP';
function PHP() {
return 'This is the ' . __FUNCTION__ . ' function';
}
echo $language();
- A) The script echoes: "This is the PHP function"
- B) PHP Parse error: syntax error on line 7
- C) Notice: Use of undefined constant FUNCTION_ - assumed 'FUNCTION' on line 5
- D) an exception is thrown
Answer
Answer: A