Posted by CptDondo on 01/08/07 17:46
Could someone please let me know the equivalent of C atoi and similar
functions? I need to convert a hex text string - e.g. '0x01' - to its
integer equivalent.
I also want to be able to print the contents of a binary string as its
integer values:
$x = pack("n",0x20);
print $x;
prints one space, as 0x20 is the ascii representation for a ' '.
My C background really blinds me sometimes....
--Yan
[Back to original message]
|