I need to have a 8 digit number at all times.
So if the number is '1', i need it to change to '00000001'
Can someone please help me, thanks!
$var=23; printf("%08d",$var);
How would I make that a variable?
eg
$var=23;
$newvar = printf("%08d",$var);
by using 'sprintf()' instead of printf()