πŸ“Š PHP
Q. What will be the output of the following PHP code?
Code:
<?php
$num = 10120;
$num1 = (array) $num;
echo $num1[0];
?>
  • (A) 10120
  • (B) Error
  • (C) 101
  • (D) 120
πŸ’¬ Discuss
βœ… Correct Answer: (A) 10120

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
55927
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Neha Sharma
Publisher
πŸ“ˆ
88%
Success Rate