Q. What will be the output of the following PHP code?

Code:
<?php
$score = 1234;
$scoreboard = (array) $score;
echo $scoreboard[0];
?>
  • (A) 1
  • (B) Error
  • (C) 1234
  • (D) 2
πŸ’¬ Discuss
βœ… Correct Answer: (C) 1234

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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