On Fri, Oct 22, 2010 at 1:05 AM, Micky Hulse mickyhulse.li...@gmail.comwrote:
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:
Hi Adam! Many thanks for you quick reply and for the help. :)
On Thu, Oct 21, 2010 at 11:31 PM, Adam Richardson
In your second example, you're directly inputing a hex number, so there's no
issue.
Interesting... I wish I could just input the hex directly,
unfortunately I don't have that option.
On Thu, Oct 21, 2010 at 11:45 PM, Micky Hulse rgmi...@gmail.com wrote:
Hmmm, I wonder if I am going about this all wrong.
OMG, too easy:
my_method(hexdec('0x' . $base))
How did I miss that!?! I could swear I tried that earlier.
Sorry to bug ya'll!
Cheers,
Micky
--
PHP General Mailing List
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().
4 matches
Mail list logo