Hi All,
Im stumped with this one, I am trying to create a timestamp. This timestamp will be used as a unique ID. So the timestamp is as follows:
$time = date('His');
If I
echo $time;
, thats fine.
However my problem occurs with any time that is before 9AM!. You see, I have my server set to 24 Hour time, however, when I create my time I always increment one like below:
$time += 1;
echo $time;
(Dont ask why I Increment one - long story). The problem is but, if the time is < 9AM
it prints "93433", however if it is after 9AM it prints the leading zero fine "103444" etc..
Basically my problem is:
1) When I incrmement a value with a leading zero, I loose the leading Zero
2) How do I keep it??