Q. Which of the following functions is used to output text in PHP?

  • (A) print()
  • (B) echo
  • (C) write()
  • (D) Both echo and print()
πŸ’¬ Discuss
βœ… 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.
Explanation by: Rati Dubey
Both echo and print() are used to output data in PHP. echo is faster and can take multiple parameters, while print() always returns 1.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
72
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
99%
Success Rate