3
I have a record in my Mysql BD, example: A0001 and I need to take this value and go adding example A0001 + 1 = A0002.
I did the following:
$texto = "A0001";
$novotexto = substr($texto, -4);
$soma = ($novotexto+1);
echo $soma;
The return was A2, but I’d like you to stay A0002.