πŸ“Š PHP
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

πŸ‘οΈ
81971
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Pritvik
Publisher
πŸ“ˆ
81%
Success Rate