php - Is there a way to print upto an even result in a for loop? -


Then I have a loop that has some output like "1,2,3, 4, 5,6 ... Does ... " Is there a way to close the loop, who says that before the loop ends, say the last number too. So we say that if its "1,2, 3, 4, 5", then 4 when the loop closes?

$ M = $ n - ($ n% 2); // $ $ ($ i = 1; $ i & lt; = $ m; $ i ++) Get the largest number as well as $ n, resonate $ i; ';

Comments