Q. What will be the output?

Code:
$a = [1,2,3];
unset($a[1]);
echo count($a);
  • (A) 3
  • (B) 2
  • (C) 1
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) 2
Explanation: Element removed, count becomes 2.
Explanation by: Roshan
Element removed, count becomes 2.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
11
Total Visits
πŸ“½οΈ
3 mo ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
93%
Success Rate