I need to convert the string to following format.
1000 -> 0000001000
10000 -> 0000010000
25000 -> 0000025000
I tried this way ceil(str_pad($range_array[0],6 , "0", STR_PAD_LEFT))
But this works for 1000, but fails for 10,000 .
Is there any function to create it ?