<?php $id = 1; $len = strlen($id); $input = "AHD"; $final_len = 5+strlen($input)-$len; echo str_pad($input, $final_len, "0", STR_PAD_RIGHT);
You have javascript disabled. You will not be able to edit any code.