PHP MCQ PHP Basic MCQ Question #2360
MCQ Single Best Answer Not Set

QWhat will be the output of the following PHP code?
< ?php 
$score = 1234;
$scoreboard = (array) $score;
echo $scoreboard[0];
?>

ID: #2360 PHP Basic MCQ 1,639 views
Question Info
#2360Q ID
Not SetDifficulty
PHP Basic MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 1
  • B Error
  • C 1234
  • D 2
Correct Answer: Option C

Explanation

The (array) is a cast operator which is used for converting values from other data types to array.

Share This Question

Challenge a friend or share with your study group.