Complete solutions for a really simple task ...
$str = 'Chicago-Illinos1';
echo $str++;
If the line ends with a number, it will increase the number (for example: 'abc123' ++ = 'abc124').
If the line ends with a letter, the letter will be increased (for example: '123abc' ++ = '123abd')
source
share