This script demonstrates using values which were passed in an array.
\n"; $sum += $vals[$i]; } echo "
The sum of those three numbers is $sum.\n"; ?>