Q. Which of the following is the correct way to declare a function in PHP?
β
Correct Answer: (A)
function myFunction() {}
Explanation: Functions are declared using the 'function' keyword followed by the name and parentheses.