The result for this = "prao" I tried to increase the count beyond the last alphabet reaching z and it gives an output something like "prbc". I notice that as the X in $i<=X is increased only the last two chareceters in the string "prad" is incremented. What do i have to do to increment the whole string together? Regards Prad$sample='prad'; for($i=0;$i<=10;++$i){ ++$sample; } print"$sample";
In reply to string increment by prad_intel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |