In php if I writ
$c=\'A\';
it increments to \'B\' but if I want to increment it with 2 ,3 or more ,
eg: $c+2 or $c+3 ,
$c++;
If you want to increment the character by 2, adding won't work.
Try this instead:
echo chr(ord($c) + 2)
Explanation:
Refer to ord() and chr() functions.
Note: As Mark Baker specifies, this will only work to Z and not beyond.