This is another example (not an answer as such) of using for for without a third statement. This is a little clearer than the original question.
for ($i=0; $i >= $i++ && $i <= 10; ); echo $i;
This will basically count to 10 and repeat it, and this is only possible using the increment operator in PHP.
First, set $i to zero;
Secondly, we check and increase $i to make sure that it is equal to or greater than itself when it is less than or equal to 10.
Thirdly, we do nothing ... it makes no sense ...
However, ordinary people will write the same thing as:
for ($i = 0; $i <= 10; $i++); echo $i;
You have to imagine the best use case, and yes, you can just do $i = 10; but this does not go to the explanation of the question.
source share