Increment Letters: Weird Problem

Vapheittef0s7

New Member
I have just asked a question on SO and found out I can make use of \[code\]++\[/code\] to increment letters. I have now tried this:\[code\]$last_id = get_last_id();echo gettype($last_id); //stringecho 'L_ID ->'.$last_id.'<br />'; //AAF$next_id = $last_id++;echo 'N_ID ->'.$next_id.'<br />';//AAF\[/code\]The following example which I was given works fine:\[code\]$x = 'AAZ';$x++;echo $x;//ABA\[/code\]What is going on? Must be the end of the work day...Thanks all for any help
 
Back
Top