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

Code:
<?php
    $array = array (true => 'a', 1 => 'b');
    var_dump ($array);
?>
  • (A) True => ‘a’, 1 => ‘b’
  • (B) 1 => ‘b’
  • (C) 0 => ‘a’, 1 => ‘b’
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (B) 1 => ‘b’

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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