πŸ“Š PHP
Q. Which is the correct syntax of defining a default argument value in PHP?
  • (A) function function_name(type $argument_name : value) { /* function body*/ }
  • (B) function function_name(type $argument_name , value) { /* function body*/ }
  • (C) function function_name(type $argument_name = value) { /* function body*/ }
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) function function_name(type $argument_name = value) { /* function body*/ }

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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