Question:What will the following script output?
<?php
$array = array (1, 2, 3, 5, 8, 13, 21, 34, 55);
$sum = 0;
for ($i = 0; $i < 5; $i++) {
  $sum += $array[$array[$i]];
}
echo $sum;
?>
 

A 78 

B 19 

C NULL 

D 5 

E 0 

+ Answer
+ Explanation
+ Report
Total Preview: 1671

Copyright © 2024. Powered by Intellect Software Ltd