Guest User

Untitled

a guest
Jun 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. <?php
  2. $sum = array(4, 7, 2, 9, 12, 54);
  3. foreach($sum as $value1){
  4. $value3 = $value1 + $value2 ;
  5. $value2 = $value3;
  6. $value1 = "";
  7. }
  8. echo $value3;
  9. ?>
Add Comment
Please, Sign In to add comment