Guest User

Untitled

a guest
Jan 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. <?php
  2.  
  3. $wheels = ['cycle' => 2, 'car' => 4];
  4. $count = 0;
  5. foreach ($wheels as $wheel_count) {
  6. $count += $wheel_count;
  7. }
  8.  
  9. // Result is 6
  10.  
  11. ?>
Add Comment
Please, Sign In to add comment