unable to do sum and getting same value by using while loop php

Solutions on MaxInterview for unable to do sum and getting same value by using while loop php by the best coders in the world

showing results for - "unable to do sum and getting same value by using while loop php"
Rafael
22 Jan 2016
1$i = 1;
2$var_startVal = 500;
3$var_endVal = 500;
4$var_amount = 50;
5
6while( $i <= 65 ) {
7  $var_startVal += 500;
8  $var_endVal += 500;
9  $var_amount += 50;
10
11  $startVal = 35501, $var_startVal;
12  $endVal = 36000, $var_endVal;
13  $amount = 3575, $var_amount;
14  echo "array(<br>";
15    echo "'low'     => '".$startVal."',<br>";
16    echo "'high'    => '".$endVal."',<br>";
17    echo "'amount'  => '".$amount."',<br>";
18    echo '\'city\'    => $city<br>';
19  echo "),<br>";
20  $i++;
21}
22