I think I just encountered the strangest \'bug\' I\'ve ever encountered in my short developer life. It seems like I just can\'t assign the value eight to any variable. For exemp
If your looking to lead a number with zero (Like a month calendar) you could try something like this:
for ($num = 1; $num <= 31; $num++) {
if($num<10)
$day = "0$num"; // add the zero
else
$day = "$num"; // don't add the zero
echo "$day
";
?>
Looks like everyone else also stated that a number leading with zero is treated as Octal