The code is pretty straight forward, however it is just not running the way it is expected to, basically the numbers get added at the end in order to continue the while loop. But they are just not adding, the $two and $i that is
PHP:
$i=1;
$two=2;
$add=9;
$count=1;
while($i<=7488){
echo $count;
echo $exploded[$two];
echo "<br>count=".$count."<br>";
echo "<br>two=".$two."<br>";
echo "<br>i=".$i."<br>";
$count++;
$two+$add;
$i+$add;
}
How about this:
$two + $addis just an expression that returns the sum of the two variables; it doesn’t actually do anything or change any state.$two += $add(+=is the addition assignment operator) is equivalent to$two = $two + $add. Analogous operators exist for other arithmetic operations (e.g.*=,-=, etc.).This pattern is true for all C-like languages (to my knowledge), and many other languages too.