Number IncreaseJul 22, 2007
I have a code which starts with a letter and then digits follow, an example code looks like
How can I get php to increase the codes number by 1, leaving the letter the same.
The above would look like
$codenum = substr('D002482', 1);
$codelet = substr('D002482', 0,1);
$code2 = $codenum+1;
But that seems to remove the 00 at the start of the code.