πŸ“Š PHP
Q. What will be the output?
Code:
$a = [1,2,3];
array_shift($a);
echo implode(',', $a);
  • (A) 1,2,3
  • (B) 2,3
  • (C) 1,2
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) 2,3

Explanation: array_shift removes first element.

Explanation by: Roshan
array_shift removes first element.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
2
Total Visits
πŸ“½οΈ
8 d ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
88%
Success Rate