<?php
  $prices = [25, 40, 15, 60, 30];
  $total = 0;

  foreach($prices as $value) {
    $total += $value;
  }
  echo "The total is: " . $total; // The total is: 170
?>