Re: [PHP] Convert hex string to hex value?

2010-10-22 Thread Micky Hulse
On Thu, Oct 21, 2010 at 11:45 PM, Micky Hulse 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 (http://www.php.n

Re: [PHP] Convert hex string to hex value?

2010-10-21 Thread Micky Hulse
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

Re: [PHP] Convert hex string to hex value?

2010-10-21 Thread Adam Richardson
On Fri, Oct 22, 2010 at 1:05 AM, Micky Hulse wrote: > 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 = '96989