Beginner
PHP
Q10 / 100
How do you define a function in PHP?
Correct! Well done.
Incorrect.
The correct answer is C) function greet() {}
C
Correct Answer
function greet() {}
Explanation
PHP functions are declared with the function keyword followed by the function name and parentheses.
Progress
10/100