Q. What is the result of the following PHP code?

Code:
<?php 
    $number = array("2", "str", 4);
    echo(array_sum($number));
?>
  • (A) 4
  • (B) 2
  • (C) 6
  • (D) 2str4
πŸ’¬ Discuss
βœ… Correct Answer: (C) 6

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
199
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Pritvik
Publisher
πŸ“ˆ
86%
Success Rate