I'm using this simple while loops inside of a while loop and whats happening is the $x
is working how i planned but the $i
isnt.
$i = 0;
$x = 0;
while ($i <= 50) {
while ($x <= 50) {
echo $i . $x . "<BR/>";
$x++;
}
$i++;
}
I'm getting the response;
00
01
0...
050
but then the script is stopping? $i
isn't incrementing and running the while loop 50 more times so i would have
00
01
0...
050
10
11
1...
150