LP>> IMHO, I think this is an artifact of PHP only supporting _signed_
LP>> integers.
But printing signed binary numbers or octals, etc. is pretty meaningless -
at least, I fail to see any use of it and no printf I know ever did that.
This also doesn't exactly works right - thus I ask, would it b
Stanislav Malyshev wrote:
>
> I have noticed that PHP printf threats non-decimal formats as signed. This
> is pretty non-standard, since C printf, for example, has all non-decimal
> formats as ungined, and so does Perl. The questions are:
>
> 1. What was the reason for this strange deviation fro
I have noticed that PHP printf threats non-decimal formats as signed. This
is pretty non-standard, since C printf, for example, has all non-decimal
formats as ungined, and so does Perl. The questions are:
1. What was the reason for this strange deviation from other languages?
2. Does anybody uses