πŸ“Š PHP
Q. Which is the correct syntax of defining function return type in PHP?
  • (A) function function_name(type $arguments) : return_type { /* function body*/ }
  • (B) function function_name(type $arguments) , return_type { /* function body*/ }
  • (C) return_type function function_name(type $arguments) { /* function body*/ }
  • (D) function return_type function_name(type $arguments) { /* function body*/ }
πŸ’¬ Discuss
βœ… Correct Answer: (A) function function_name(type $arguments) : return_type { /* function body*/ }

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
184
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
93%
Success Rate