Q. Which of the following functions is used to output text in PHP?
β
Correct Answer: (D)
Both echo and print()
Explanation: Both echo and print() are used to output data in PHP. echo is faster and can take multiple parameters, while print() always returns 1.