Hi,

I have a question about PHP's support for unsigned integers. I was trying
out the following code fragment....

$val = 0x80000000;
$hexval_str = sprintf("%X", $val);
echo $hexval_str;

result=
-80000000

It seems here that I can not represent $val as an unsigned integer. Since
settype does not have unsigned types, does anyone know how I can use sprintf
to format an unsigned value?

Any help would be greatly appreciated.
TIA!


Michael


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to