Hi few times ago I post question how to add eight 0 before primary key using php and javascript and I got my answers for both php and javascript and I create two functions for it.
PHP function
function addingZerosBeforeIds($ids){
return str_pad($ids, 9, "0", STR_PAD_LEFT);
}
and javascript function
function addingZerosBeforeIds(input, length, string) {
string = string || '0'; input = input + '';
return input.length >= length ? input : new Array(length - input.length + 1).join(string) + input;
}
its working fine but now I want to remove zeros before primary key I tries a lot for this but didn't succeed how to do this.