I'm trying the following code:
<?php
$test = "326101347676";
echo sprintf("%014d\n", $test);
But it's giving me 00002147483647 output.
What I expect is 00326101347676
I know it's causing by the sprintf function, but I don't know why, could you please help me to solve this problem.
FYI: I'm in PHP/5.3.0
Note: The referred post didn't help me to solve the problem, besides I already tried the bcmod command and didn't go well with my code. Now @devpro last snippet in the comment section working well for me.