RE: Counting in Hex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Never mind - wasn't adding properly.  Found it after all on php.net, anyway.
Thanks anyway.

-----Original Message-----
From: Ben Miller [mailto:benipmiller@xxxxxxxxxxx]
Sent: Wednesday, January 04, 2006 5:01 PM
To: php-general@xxxxxxxxxxxxx
Subject:  Counting in Hex


Is there a way in PHP to count using hex instead of numerals so that the
following statement

$var = 237F;
$var++;
echo "$var";

would result in

2380

Thanks a bunch.

Ben

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

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux