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

  for ($i = 0; $i < count($prices); $i++) {
    $total += $prices[$i];
  }
  echo "The total is: ".$total; // The total is: 170
?>