Convert hex string to hex value?

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

 



Hi,

I must be tired because I can't figure this out... I am sure it is
something obvious.

I need to pass a hex value to a method, but I can't figure out how to
convert a hex string to a hex value.

For exmaple:

$base = '96989b'
my_method('0x' . $base)

The above does not work with my_method().

my_method(0x96989b)

The above works without any problems.

Any tips?

Many thanks in advance!

Micky

-- 
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