我有一个两个变量一个是字符串包含数字而另一个是数字,我想增加字符串的数字部分到第二个数字.
$n ='sh500'; $c = 3; for($i=$n;$i<$c;$i++) echo $i.'<br>';
我想输出像:
sh500 sh501 sh502
php
php ×1