Php language
$serial = "AA"; $serial[0] += 1;
It doesn't work because php is dynamic, it just assigns $ serial = 1, and I need $ serial = "BA", what are the options? thank!
Php language
$serial = "AA"; $serial[0] += 1;
It doesn't work because php is dynamic, it just assigns $ serial = 1, and I need $ serial = "BA", what are the options? thank!
Maybe it's not PHP?)
$serial = "AA"; $serial[0] = chr(ord($serial[0]) + 1); echo $serial;
Source: https://ru.stackoverflow.com/questions/552704/
All Articles