Today i faced a situation to increment alphabet in a loop. So how did i achieved it?
Simple, code is provided below.
$xi = 'A';
Inside the loop, just echo this variable and then pre-increment it like below:
++$xi;
Voila :D
Simple, code is provided below.
$xi = 'A';
Inside the loop, just echo this variable and then pre-increment it like below:
++$xi;
Voila :D
No comments:
Post a Comment