就像标题暗示我需要做这样的事情......
$i++;//we all know this.
$value = 'a';
increment($value);// i need this functionality
//output
string [ b ]
///here are some more samples, to help you understand...
increment('b'); //output// c
increment('z'); //output// A [capital A not fussy but would be good :) ]
increment('9'); //output// a1
increment('a1'); //output// a2
increment('aa1'); //output// aa2
等等... 更新
好吧,假设我使用数值 $id++; 我最终会得到一个庞大的数字1310743942525
;这可能比说“ab34c9”占用更多的空间,我试图保存字符长度以保存在数据库中......