Convert hex string to hex value?
| From: | Micky Hulse | Date: | Fri, 22 Oct 2010 05:05:25 +0000 |
| Subject: | Convert hex string to hex value? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-308987@lists.php.net to get a copy of this message | ||
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