I would think that if $a were a number that

        echo $a;


        printf('%d', $a);

would produce the same output.  Is this correct?

Either I'm missing something, or PHP gets very confused when
dealing with some numbers.  For example, the following program

        $result = 0x9E3779B9;
        echo $result
        printf('%d', $result);



I get the same kind of unexpected results when doing arithmetic
on such numbers.

Is this tickling some kind of known bug in PHP?  or am I
misunderstanding something?


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to