<?php $x = '631'; $str = str_pad(((int)$x) + 1, 4, '0', STR_PAD_LEFT); var_dump($str);
You have javascript disabled. You will not be able to edit any code.