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
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option C
Explanation
The (array) is a cast operator which is used for converting values from other data types to array.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic