Question:What is the output for the following code?
<?php
  $total=0;
  for($i=0;$i<4;$i++){
     
   $total=$total+$i;

  }
  echo $total;

?>
 

A 6 

B 4 

C 5 

+ Answer
+ Report
Total Preview: 1065

Copyright © 2024. Powered by Intellect Software Ltd